[vtkusers] How to find if a point lies within a planewidget's	plane?
    Goodwin Lawlor 
    goodwin.lawlor at ucd.ie
       
    Mon May 19 08:47:06 EDT 2008
    
    
  
Hi Rashed,
Have a look at:
vtkPolygon::PointInPolygon(
   double  x[3],
   int  numPts,
   double *  pts,
   double  bounds[6],
   double  n[3]
)
hth
Goodwin
rashedk wrote:
> Hi there, 
> 
> I am stuck with a very trivial problem. How do I find out if a point (a,b,c)
> lies within a plane in 3D which is a constrained finite plane and not an
> infinite one. I have the coordinates of the two corners of the plane as
> returned by vktPlaneWidget's GetPoint1 and GetPoint2 functions. I also have
> the plane's normal and center. 
> 
> thanks in advance, 
> 
> Rashed. 
> 
> 
    
    
More information about the vtkusers
mailing list