[vtkusers] vtkSelectVisiblePoints and vtkPolyData
wushx6 at gmail.com
Fri May 19 09:59:41 EDT 2017
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();
// in the overloading vtkInteractorStyleTrackballCamera class:
qDebug() << "There are currently: " <<
this->visible_filter->GetOutput()->GetNumberOfPoints() << " visible.";
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