[vtkusers] VTK Plane Distance from Point to Plane
David Gobbi
david.gobbi at gmail.com
Fri Apr 5 10:18:44 EDT 2013
It returns the perpendicular distance. The other method you want
is vtkPlane::ProjectPoint(double point[3], double projectedPoint[3])
Caveat: these methods expect the plane normal to be a unit vector.
It is the responsibility of whoever calls SetNormal() to ensure that
the normal has unit length.
- David
On Fri, Apr 5, 2013 at 7:01 AM, Rafay Khan <rafayk_ at hotmail.com> wrote:
> Hey guys,
>
> I was wondering if you guys knew if "vtkPlane::DistanceToPlane(double [3])"
> returns the shortest distance to a the plane or does it return the distance
> from the input point to the origin?
>
> I would like to find the shortest (perpendicular) distance from a point in
> 3d space to the plane. I do not have the value of the point on the plane
> that is perpendicular to the point in space.
>
> Is there a vtk function that can give me this point on the plane(though it
> is not necessary I have this point, I am really only concerned with the
> distance to the plane). I'd rather not write a function to do this.
>
> Rafay
More information about the vtkusers
mailing list