141#ifndef vtkSuperquadricSource_h
142#define vtkSuperquadricSource_h
144#include "vtkFiltersSourcesModule.h"
147#define VTK_MAX_SUPERQUADRIC_RESOLUTION 1024
148#define VTK_MIN_SUPERQUADRIC_THICKNESS 1e-4
149#define VTK_MIN_SUPERQUADRIC_ROUNDNESS 1e-24
151VTK_ABI_NAMESPACE_BEGIN
169 vtkSetVector3Macro(Center,
double);
170 vtkGetVectorMacro(Center,
double, 3);
177 vtkSetVector3Macro(Scale,
double);
178 vtkGetVectorMacro(Scale,
double, 3);
185 vtkGetMacro(ThetaResolution,
int);
193 vtkGetMacro(PhiResolution,
int);
203 vtkGetMacro(Thickness,
double);
213 vtkGetMacro(PhiRoundness,
double);
223 vtkGetMacro(ThetaRoundness,
double);
231 vtkSetMacro(Size,
double);
232 vtkGetMacro(Size,
double);
240 vtkSetMacro(AxisOfSymmetry,
int);
241 vtkGetMacro(AxisOfSymmetry,
int);
263 vtkSetMacro(OutputPointsPrecision,
int);
264 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
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void SetPhiRoundness(double e)
Set/Get Superquadric north/south roundness.
~vtkSuperquadricSource() override=default
void SetZAxisOfSymmetry()
Set/Get axis of symmetry for superquadric (x axis: 0, y axis: 1, z axis: 2).
vtkSuperquadricSource(int res=16)
void SetPhiResolution(int i)
Set the number of points in the latitude direction.
void SetThetaRoundness(double e)
Set/Get Superquadric east/west roundness.
void SetYAxisOfSymmetry()
Set/Get axis of symmetry for superquadric (x axis: 0, y axis: 1, z axis: 2).
static vtkSuperquadricSource * New()
Create a default superquadric with a radius of 0.5, non-toroidal, spherical, and centered at the orig...
void SetXAxisOfSymmetry()
Set/Get axis of symmetry for superquadric (x axis: 0, y axis: 1, z axis: 2).
int OutputPointsPrecision
void SetThetaResolution(int i)
Set the number of points in the longitude direction.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
#define VTK_MIN_SUPERQUADRIC_THICKNESS