[vtk-developers] vtkPlane non-static wrappers
David Doria
daviddoria+vtk at gmail.com
Mon Feb 1 21:51:53 EST 2010
Anyone mind if I add:
double DistanceToPlane (double x[3])
void ProjectPoint (double x[3], double xproj[3])
void GeneralizedProjectPoint (double x[3], double origin[3], double
normal[3], double xproj[3])
int IntersectWithLine (double p1[3], double p2[3], double &t, double x[3])
as convenience functions to:
static double DistanceToPlane (double x[3], double n[3], double p0[3])
static void ProjectPoint (double x[3], double origin[3], double normal[3],
double xproj[3])
static void GeneralizedProjectPoint (double x[3], double origin[3], double
normal[3], double xproj[3])
static int IntersectWithLine (double p1[3], double p2[3], double n[3],
double p0[3], double &t, double x[3])
The non-static functions would simply call the static functions and pass the
instantiated plane object's normal and origin. This is the same idea that I
added with vtkTriangle::ComputeArea()
Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100201/a21a0c85/attachment.html>
More information about the vtk-developers
mailing list