39 #ifndef vtkSuperquadric_h
40 #define vtkSuperquadric_h
42 #include "vtkCommonDataModelModule.h"
45 #define VTK_MIN_SUPERQUADRIC_THICKNESS 1e-4
47 VTK_ABI_NAMESPACE_BEGIN
69 vtkSetVector3Macro(Center,
double);
70 vtkGetVectorMacro(Center,
double, 3);
77 vtkSetVector3Macro(Scale,
double);
78 vtkGetVectorMacro(Scale,
double, 3);
86 vtkGetMacro(Thickness,
double);
95 vtkGetMacro(PhiRoundness,
double);
104 vtkGetMacro(ThetaRoundness,
double);
112 vtkSetMacro(Size,
double);
113 vtkGetMacro(Size,
double);
142 VTK_ABI_NAMESPACE_END
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
Evaluate function at position x-y-z and return value.
a simple class to control print indentation
implicit function for a Superquadric
void EvaluateGradient(double x[3], double g[3]) override
Evaluate function gradient at position x-y-z and pass back vector.
double EvaluateFunction(double x[3]) override
Evaluate function at position x-y-z and return value.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetPhiRoundness(double e)
Set/Get Superquadric north/south roundness.
static vtkSuperquadric * New()
Construct with superquadric radius of 0.5, toroidal off, center at 0.0, scale (1,1,...
~vtkSuperquadric() override=default
void SetThetaRoundness(double e)
Set/Get Superquadric east/west roundness.
#define VTK_MIN_SUPERQUADRIC_THICKNESS