[vtkusers] Re: Checking whether a coordinate is already in vtkPoints

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


Completely missed what you were asking. I guess you could store a map of
your point coordinates and then do a look up...

Anja

On 29/09/06, Anja Ende <anja.ende at googlemail.com> wrote:
>
> 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/23e8dd63/attachment.htm>


More information about the vtkusers mailing list