51 #ifndef vtkSuperquadricSource_h
52 #define vtkSuperquadricSource_h
54 #include "vtkFiltersSourcesModule.h"
57 #define VTK_MAX_SUPERQUADRIC_RESOLUTION 1024
58 #define VTK_MIN_SUPERQUADRIC_THICKNESS 1e-4
59 #define VTK_MIN_SUPERQUADRIC_ROUNDNESS 1e-24
78 vtkSetVector3Macro(Center,
double);
79 vtkGetVectorMacro(Center,
double, 3);
86 vtkSetVector3Macro(Scale,
double);
87 vtkGetVectorMacro(Scale,
double, 3);
94 vtkGetMacro(ThetaResolution,
int);
102 vtkGetMacro(PhiResolution,
int);
112 vtkGetMacro(Thickness,
double);
122 vtkGetMacro(PhiRoundness,
double);
132 vtkGetMacro(ThetaRoundness,
double);
140 vtkSetMacro(Size,
double);
141 vtkGetMacro(Size,
double);
149 vtkSetMacro(AxisOfSymmetry,
int);
150 vtkGetMacro(AxisOfSymmetry,
int);
172 vtkSetMacro(OutputPointsPrecision,
int);
173 vtkGetMacro(OutputPointsPrecision,
int);
a simple class to control print indentation
Superclass for algorithms that produce only polydata as output.
create a polygonal superquadric centered at the origin
void SetPhiRoundness(double e)
void SetZAxisOfSymmetry()
vtkSuperquadricSource(int res=16)
void SetPhiResolution(int i)
void SetThetaRoundness(double e)
void SetYAxisOfSymmetry()
void SetXAxisOfSymmetry()
int OutputPointsPrecision
void SetThetaResolution(int i)
~vtkSuperquadricSource() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkSuperquadricSource * New()
Create a default superquadric with a radius of 0.5, non-toroidal, spherical, and centered at the orig...
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
#define VTK_MIN_SUPERQUADRIC_THICKNESS