34 #include "vtkCommonDataModelModule.h"
66 vtkSetVector3Macro(
Normal,
double);
67 vtkGetVectorMacro(
Normal,
double,3);
75 vtkSetVector3Macro(Origin,
double);
76 vtkGetVectorMacro(Origin,
double,3);
84 void Push(
double distance);
92 static void ProjectPoint(
double x[3],
double origin[3],
double normal[3],
94 void ProjectPoint(
double x[3],
double xproj[3]);
102 static void ProjectVector(
double v[3],
double origin[3],
double normal[3],
104 void ProjectVector(
double v[3],
double vproj[3]);
113 static void GeneralizedProjectPoint(
double x[3],
double origin[3],
114 double normal[3],
double xproj[3]);
115 void GeneralizedProjectPoint(
double x[3],
double xproj[3]);
122 static double Evaluate(
double normal[3],
double origin[3],
double x[3]);
129 static double DistanceToPlane(
double x[3],
double n[3],
double p0[3]);
130 double DistanceToPlane(
double x[3]);
142 static int IntersectWithLine(
double p1[3],
double p2[3],
double n[3],
143 double p0[3],
double& t,
double x[3]);
144 int IntersectWithLine(
double p1[3],
double p2[3],
double& t,
double x[3]);
156 void operator=(const
vtkPlane&) VTK_DELETE_FUNCTION;
160 double origin[3],
double x[3])
162 return normal[0]*(x[0]-origin[0]) + normal[1]*(x[1]-origin[1]) +
163 normal[2]*(x[2]-origin[2]);
168 #define vtkPlaneAbs(x) ((x)<0?-(x):(x))
169 return (
vtkPlaneAbs(n[0]*(x[0]-p0[0]) + n[1]*(x[1]-p0[1]) +
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
static double DistanceToPlane(double x[3], double n[3], double p0[3])
Return the distance of a point x to a plane defined by n(x-p0) = 0.
virtual void EvaluateGradient(double x[3], double g[3])=0
Evaluate function gradient at position x-y-z and pass back vector.
a simple class to control print indentation
double EvaluateFunction(double x, double y, double z)
Evaluate plane equation for point x[3].
perform various plane computations
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.