[vtkusers] vtkMaskPolyData

ahmedmaalej ahmed.supcom at hotmail.com
Fri Jan 28 08:51:18 EST 2011


	vtkMaskPoints  can be used to subsample or downsample a polydata, not
necessary a pointset from polydata, but to see the result in a render
window, do not forget to set the GenerateVerticesOn ON.

	vtkMaskPoints  ptMask = new vtkMaskPoints ();
	    ptMask.SetInput(courbe_rech);
  
	    //ptMask.SetOnRatio(10);//Turn on every nth point
	   
	    //ptMask.RandomModeOff();// randomization of point selection. If this
mode is on, statically //every nth point will be displayed.
	    ptMask.SetMaximumNumberOfPoints(9000);
	    ptMask.GenerateVerticesOn();// very important to see the points and 
	    ptMask.Update();

That's all.
-- 
View this message in context: http://vtk.1045678.n5.nabble.com/vtkMaskPolyData-tp1249398p3361483.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list