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

John Biddiscombe biddisco at cscs.ch
Mon Oct 2 04:31:48 EDT 2006


vtkMergePoints

JB

Anja Ende wrote:
> 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 
> <mailto:anja.ende at googlemail.com>> wrote:
>
>     Hi,
>
>     Use vtkPoints::GetNumberOfPoints() to check this.
>
>     so,
>
>     if (myPointCollection->GetNumberOfPoints() == 0)
>         myPointCollection->InsertPoint(.....)
>
>     Cheers,
>     Anja
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>   


-- 
John Biddiscombe,                            email:biddisco @ cscs.ch
http://www.cscs.ch/about/BJohn.php
CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07
Via Cantonale, 6928 Manno, Switzerland      | Fax:  +41 (91) 610.82.82





More information about the vtkusers mailing list