mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Fix issue 10827.
This commit is contained in:
parent
e2a99d24ec
commit
28a78003f0
@ -294,9 +294,9 @@ void cv::viz::Widget3D::applyTransform(const Affine3d &transform)
|
||||
|
||||
vtkSmartPointer<vtkPolyDataMapper> mapper = vtkPolyDataMapper::SafeDownCast(actor->GetMapper());
|
||||
CV_Assert("Widget doesn't have a polydata mapper" && mapper);
|
||||
mapper->Update();
|
||||
|
||||
VtkUtils::SetInputData(mapper, VtkUtils::TransformPolydata(mapper->GetInput(), transform));
|
||||
mapper->Update();
|
||||
}
|
||||
|
||||
void cv::viz::Widget3D::setColor(const Color &color)
|
||||
|
Loading…
Reference in New Issue
Block a user