[vtkusers] Checking whether a coordinate is already in vtkPoints

Anja Ende anja.ende at googlemail.com
Fri Sep 29 11:49:11 EDT 2006


Hi,

Use vtkPoints::GetNumberOfPoints() to check this.

so,

if (myPointCollection->GetNumberOfPoints() == 0)
    myPointCollection->InsertPoint(.....)

Cheers,
Anja
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060929/48b0b631/attachment.htm>


More information about the vtkusers mailing list