57 vtkSetVector3Macro(
Normal,
double);
58 vtkGetVectorMacro(
Normal,
double,3);
64 vtkSetVector3Macro(Origin,
double);
65 vtkGetVectorMacro(Origin,
double,3);
70 void Push(
double distance);
76 static void ProjectPoint(
double x[3],
double origin[3],
double normal[3],
78 void ProjectPoint(
double x[3],
double xproj[3]);
84 static void ProjectVector(
double v[3],
double origin[3],
double normal[3],
86 void ProjectVector(
double v[3],
double vproj[3]);
93 static void GeneralizedProjectPoint(
double x[3],
double origin[3],
94 double normal[3],
double xproj[3]);
95 void GeneralizedProjectPoint(
double x[3],
double xproj[3]);
100 static double Evaluate(
double normal[3],
double origin[3],
double x[3]);
105 static double DistanceToPlane(
double x[3],
double n[3],
double p0[3]);
106 double DistanceToPlane(
double x[3]);
116 static int IntersectWithLine(
double p1[3],
double p2[3],
double n[3],
117 double p0[3],
double& t,
double x[3]);
118 int IntersectWithLine(
double p1[3],
double p2[3],
double& t,
double x[3]);
134 double origin[3],
double x[3])
136 return normal[0]*(x[0]-origin[0]) + normal[1]*(x[1]-origin[1]) +
137 normal[2]*(x[2]-origin[2]);
142 #define vtkPlaneAbs(x) ((x)<0?-(x):(x))
143 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
static double DistanceToPlane(double x[3], double n[3], double p0[3])
static double Evaluate(double normal[3], double origin[3], double x[3])
virtual void EvaluateGradient(double x[3], double g[3])=0
a simple class to control print indentation
double EvaluateFunction(double x, double y, double z)
perform various plane computations
void PrintSelf(ostream &os, vtkIndent indent)
#define VTKCOMMONDATAMODEL_EXPORT