56 #ifndef __vtkSuperquadricSource_h
57 #define __vtkSuperquadricSource_h
59 #include "vtkFiltersSourcesModule.h"
60 #include "vtkPolyDataAlgorithm.h"
62 #define VTK_MAX_SUPERQUADRIC_RESOLUTION 1024
63 #define VTK_MIN_SUPERQUADRIC_THICKNESS 1e-4
64 #define VTK_MIN_SUPERQUADRIC_ROUNDNESS 1e-24
75 void PrintSelf(ostream& os, vtkIndent indent);
79 vtkSetVector3Macro(Center,
double);
80 vtkGetVectorMacro(Center,
double,3);
85 vtkSetVector3Macro(Scale,
double);
86 vtkGetVectorMacro(Scale,
double,3);
92 vtkGetMacro(ThetaResolution,
int);
93 void SetThetaResolution(
int i);
99 vtkGetMacro(PhiResolution,
int);
100 void SetPhiResolution(
int i);
107 vtkGetMacro(Thickness,
double);
114 vtkGetMacro(PhiRoundness,
double);
115 void SetPhiRoundness(
double e);
121 vtkGetMacro(ThetaRoundness,
double);
122 void SetThetaRoundness(
double e);
127 vtkSetMacro(Size,
double);
128 vtkGetMacro(Size,
double);
134 vtkSetMacro(AxisOfSymmetry,
int);
135 vtkGetMacro(AxisOfSymmetry,
int);
144 vtkBooleanMacro(Toroidal,
int);
145 vtkGetMacro(Toroidal,
int);
146 vtkSetMacro(Toroidal,
int);
159 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
void SetYAxisOfSymmetry()
create a polygonal superquadric centered at the origin
void SetZAxisOfSymmetry()
void SetXAxisOfSymmetry()
#define VTK_MIN_SUPERQUADRIC_THICKNESS