[vtkusers] Points within a closed surface _ vtkImplicitPolyData
    Benjamin King 
    king.benjamin at mh-hannover.de
       
    Wed Dec 10 09:54:37 EST 2003
    
    
  
Hello Rob,
> 1) What is the best approach to find if points lie within a certain 
> closed closed polydata surface ?
You can construct a line from the point to a point somewhere on the outside 
(e.g. a point outside the polydata's bounding box). Then, count how often 
the line intersects with the surface. If the number is even, the point is 
outside, if it's odd, the point is inside.
HIH,
  Benjamin
-- 
Benjamin King
Institut für Medizinische Informatik
Medizinische Hochschule Hannover
Tel.: +49  511  532-2663
    
    
More information about the vtkusers
mailing list