[vtkusers] vtkSelectVisiblePoints and vtkPolyData
alanwsx
wushx6 at gmail.com
Fri May 19 09:59:41 EDT 2017
Hi,
I am writing some code to do the depth test for some vtkPolyData object, and
I want to use vtkSelectVisiblePoints class in a qvtkwidget. However, I
always got 0 points.
following is the minimum code:
// in the qvtkwidget class:
visible_filter = vtkSmartPointer<vtkSelectVisiblePoints>::New();
visible_filter->SetInputData(poly_data);
visible_filter->SetRenderer(renderer);
visible_filter->Update();
.
.
.
// in the overloading vtkInteractorStyleTrackballCamera class:
this->visible_filter->Update();
qDebug() << "There are currently: " <<
this->visible_filter->GetOutput()->GetNumberOfPoints() << " visible.";
Thanks,
Shangxuan
--
View this message in context: http://vtk.1045678.n5.nabble.com/vtkSelectVisiblePoints-and-vtkPolyData-tp5743324.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list