vtkSuperquadric - implicit function for a Superquadric
Super Class: vtkImplicitFunction
Description:
vtkSuperquadric computes the implicit function and function gradient for a superquadric. vtkSuperquadric is a concrete implementation of vtkImplicitFunction. The superquadric is centered at Center and axes of rotation is along the y-axis. (Use the superclass' vtkImplicitFunction transformation matrix if necessary to reposition.) Roundness parameters (PhiRoundness and ThetaRoundness) control the shape of the superquadric. The Toroidal boolean controls whether a toroidal superquadric is produced. If so, the Thickness parameter controls the thickness of the toroid: 0 is the thinnest allowable toroid, and 1 has a minimum sized hole. The Scale parameters allow the superquadric to be scaled in x, y, and z (normal vectors are correctly generated in any case). The Size parameter controls size of the superquadric. This code is based on "Rigid physically based superquadrics", A. H. Barr, in "Graphics Gems III", David Kirk, ed., Academic Press, 1992.
Caveats:
The Size and Thickness parameters control coefficients of superquadric generation, and may do not exactly describe the size of the superquadric.
Methods:
void vtkSuperquadric () | |
static vtkSuperquadric *New () | |
const char *GetClassName () | |
void PrintSelf (unknown & ,vtkIndent ) | |
float EvaluateFunction (float ) | |
void EvaluateGradient (float ,float ) | |
void SetCenter (float ,float ,float ) | |
void SetCenter (float *) | |
float *GetCenter () | |
void SetScale (float ,float ,float ) | |
void SetScale (float *) | |
float *GetScale () | |
float GetThickness () | |
void SetThickness (float ) | |
float GetPhiRoundness () | |
void SetPhiRoundness (float ) | |
float GetThetaRoundness () | |
void SetThetaRoundness (float ) | |
void SetSize (float ) | |
float GetSize () | |
void ToroidalOn () | |
void ToroidalOff () | |
int GetToroidal () | |
void SetToroidal (int ) |
Detailed Method Descriptions:
void SetCenter (float ,float ,float ) | |
void SetCenter (float *) | |
float *GetCenter () |
void SetScale (float ,float ,float ) | |
void SetScale (float *) | |
float *GetScale () |
float GetThickness () | |
void SetThickness (float ) |
float GetPhiRoundness () | |
void SetPhiRoundness (float ) |
float GetThetaRoundness () | |
void SetThetaRoundness (float ) |
void SetSize (float ) | |
float GetSize () |
void ToroidalOn () | |
void ToroidalOff () | |
int GetToroidal () | |
void SetToroidal (int ) |