[vtkusers] how to remove points from vtkPoints?

Yang, Jinzhong jinzhong76 at gmail.com
Fri Aug 21 12:46:48 EDT 2009


You can create an array of bool to mark all those points to be deleted. Then
create another vtkPoints, copy all points you want to keep according to the
bool array.

 

-Jinzhong

 

From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf
Of Greg Book
Sent: Friday, August 21, 2009 11:03 AM
To: vtkusers at vtk.org
Subject: [vtkusers] how to remove points from vtkPoints?

 

I create a vtkPoints object and add points to it like this:

        pid = m_points->InsertNextPoint(p);

How do I remove the last point that was added? Or how do I remove an
arbitrary point?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090821/d712d7cb/attachment.htm>


More information about the vtkusers mailing list