Fix issue 10827.

This commit is contained in:
Fangjun Kuang 2018-02-11 15:54:36 +08:00
parent e2a99d24ec
commit 28a78003f0

View File

@ -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)