16 #include "vtkObjectFactory.h"
55 return std::abs(ppd + Thickness);
61 for (
int i=0; i<3; i++)
83 SetPose(_n[0],_n[1],_n[2],_o[0],_o[1],_o[2]);
88 vtkDebugMacro(<< this->
GetClassName() <<
" (" <<
this <<
"): setting " <<
Normal <<
" to (" << _arg1 <<
"," << _arg2 <<
"," << _arg3 <<
")");
89 if ((this->
Normal[0] != _arg1)||(this->
Normal[1] != _arg2)||(this->
Normal[2] != _arg3))
91 double length = sqrt(_arg1*_arg1+_arg2*_arg2+_arg3*_arg3);
92 this->
Normal[0] = _arg1/length;
93 this->
Normal[1] = _arg2/length;
94 this->
Normal[2] = _arg3/length;
101 this->
SetNormal (_arg[0], _arg[1], _arg[2]);
106 vtkDebugMacro(<< this->
GetClassName() <<
" (" <<
this <<
"): setting " <<
Origin <<
" to (" << _arg1 <<
"," << _arg2 <<
"," << _arg3 <<
")");
107 if ((this->
Normal[0] != _arg1)||(this->
Normal[1] != _arg2)||(this->
Normal[2] != _arg3))
118 this->
SetOrigin (_arg[0], _arg[1], _arg[2]);
126 #define VTK_PLANE_TOL 1.0e-06
130 this->Superclass::PrintSelf(os,indent);
132 os << indent <<
"Normal: (" << this->
Normal[0] <<
", "
135 os << indent <<
"Origin: (" << this->
Origin[0] <<
", "
138 os << indent <<
"Thickness: " << this->
Thickness <<
"\n";
virtual void SetPose(double _n1, double _n2, double _n3, double _o1, double _o2, double _o3)
double EvaluateFunction(double x[3]) override
virtual void SetOrigin(double _arg1, double _arg2, double _arg3)
void PrintSelf(ostream &os, vtkIndent indent) override
virtual void SetNormal(double _arg1, double _arg2, double _arg3)
vtkStandardNewMacro(vtkThickPlane)
virtual const char * GetClassName() const
void EvaluateGradient(double x[3], double g[3]) override
virtual void SetThickness(double _arg)