Documentation for vtkConeSource

vtkConeSource - generate polygonal cone

Super Class: vtkPolyDataSource

Description:

vtkConeSource creates a cone centered at origin and pointing down the x-axis. Depending upon the resolution of this object, different representations are created. If resolution=0 a line is created; if resolution=1, a single triangle is created; if resolution=2, two crossed triangles are created. For resolution > 2, a 3D cone (with resolution number of sides) is created. It also is possible to control whether the bottom of the cone is capped with a (resolution-sided) polygon, and to specify the height and radius of the cone.

 

Methods:

void vtkConeSource (int )
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
static vtkConeSource *New ()
void SetHeight (float )
float GetHeight ()
void SetRadius (float )
float GetRadius ()
void SetResolution (int )
int GetResolution ()
void SetAngle (float )
float GetAngle ()
void SetCapping (int )
int GetCapping ()
void CappingOn ()
void CappingOff ()
void Execute ()

 

Detailed Method Descriptions:

Construct with default resolution 6, height 1.0, radius 0.5, and capping on.

static vtkConeSource *New ()

Set the height of the cone.

void SetHeight (float )
float GetHeight ()

Set the radius of the cone.

void SetRadius (float )
float GetRadius ()

Set the number of facets used to represent the cone.

void SetResolution (int )
int GetResolution ()

Set the angle of the cone. As a side effect, this method sets radius.

void SetAngle (float )
float GetAngle ()

Turn on/off whether to cap the cone with a polygon.

void SetCapping (int )
int GetCapping ()
void CappingOn ()
void CappingOff ()