[vtkusers] how to remove points from vtkPoints?

Dominik Szczerba dominik at itis.ethz.ch
Fri Aug 21 13:15:23 EDT 2009


see also vtkThresholdFilter
- Dominik

Yang, Jinzhong wrote:
> 
> 
> 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?
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers


-- 
d o m i n i k   s z c z e r b a ,   p h d . . . . . . . . . . .
c o m p u t a t i o n a l   l i f e   s c i e n c e   g r o u p
. . . . . . . i t ' i s   r e s e a r c h   f o u n d a t i o n
. . . . . . . . . . . . . . . . . . . . http://www.itis.ethz.ch




More information about the vtkusers mailing list