Section: Visualization Toolkit Filtering Classes
To create an instance of class vtkSphere, simply invoke its constructor as follows
obj = vtkSphere
obj
is an instance of the vtkSphere class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkSphere = obj.NewInstance ()
vtkSphere = 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 n[3])
obj.SetRadius (double )
- Set / get the radius of the sphere.
double = obj.GetRadius ()
- Set / get the radius of the sphere.
obj.SetCenter (double , double , double )
- Set / get the center of the sphere.
obj.SetCenter (double a[3])
- Set / get the center of the sphere.
double = obj. GetCenter ()
- Set / get the center of the sphere.