Section: Visualization Toolkit Filtering Classes
This code is based on "Rigid physically based superquadrics", A. H. Barr, in "Graphics Gems III", David Kirk, ed., Academic Press, 1992.
To create an instance of class vtkSuperquadric, simply invoke its constructor as follows
obj = vtkSuperquadric
obj
is an instance of the vtkSuperquadric class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkSuperquadric = obj.NewInstance ()
vtkSuperquadric = obj.SafeDownCast (vtkObject o)
double = obj.EvaluateFunction (double x[3])
double = obj.EvaluateFunction (double x, double y, double z)
obj.EvaluateGradient (double x[3], double g[3])
obj.SetCenter (double , double , double )
- Set the center of the superquadric. Default is 0,0,0.
obj.SetCenter (double a[3])
- Set the center of the superquadric. Default is 0,0,0.
double = obj. GetCenter ()
- Set the center of the superquadric. Default is 0,0,0.
obj.SetScale (double , double , double )
- Set the scale factors of the superquadric. Default is 1,1,1.
obj.SetScale (double a[3])
- Set the scale factors of the superquadric. Default is 1,1,1.
double = obj. GetScale ()
- Set the scale factors of the superquadric. Default is 1,1,1.
double = obj.GetThickness ()
- Set/Get Superquadric ring thickness (toroids only).
Changing thickness maintains the outside diameter of the toroid.
obj.SetThickness (double )
- Set/Get Superquadric ring thickness (toroids only).
Changing thickness maintains the outside diameter of the toroid.
double = obj.GetThicknessMinValue ()
- Set/Get Superquadric ring thickness (toroids only).
Changing thickness maintains the outside diameter of the toroid.
double = obj.GetThicknessMaxValue ()
- Set/Get Superquadric ring thickness (toroids only).
Changing thickness maintains the outside diameter of the toroid.
double = obj.GetPhiRoundness ()
- Set/Get Superquadric north/south roundness.
Values range from 0 (rectangular) to 1 (circular) to higher orders.
obj.SetPhiRoundness (double e)
- Set/Get Superquadric north/south roundness.
Values range from 0 (rectangular) to 1 (circular) to higher orders.
double = obj.GetThetaRoundness ()
- Set/Get Superquadric east/west roundness.
Values range from 0 (rectangular) to 1 (circular) to higher orders.
obj.SetThetaRoundness (double e)
- Set/Get Superquadric east/west roundness.
Values range from 0 (rectangular) to 1 (circular) to higher orders.
obj.SetSize (double )
- Set/Get Superquadric isotropic size.
double = obj.GetSize ()
- Set/Get Superquadric isotropic size.
obj.ToroidalOn ()
- Set/Get whether or not the superquadric is toroidal (1) or ellipsoidal (0).
obj.ToroidalOff ()
- Set/Get whether or not the superquadric is toroidal (1) or ellipsoidal (0).
int = obj.GetToroidal ()
- Set/Get whether or not the superquadric is toroidal (1) or ellipsoidal (0).
obj.SetToroidal (int )
- Set/Get whether or not the superquadric is toroidal (1) or ellipsoidal (0).