Documentation for vtkTubeFilter

vtkTubeFilter - filter that generates tubes around lines

Super Class: vtkPolyDataToPolyDataFilter

Description:

vtkTubeFilter is a filter that generates a tube around each input line. The tubes are made up of triangle strips and rotate around the tube with the rotation of the line normals. (If no normals are present, they are computed automatically.) The radius of the tube can be set to vary with scalar or vector value. If the radius varies with scalar value the radius is linearly adjusted. If the radius varies with vector value, a mass flux preserving variation is used. The number of sides for the tube also can be specified.

 

Caveats:

The number of tube sides must be greater than 3. If you wish to use fewer sides (i.e., a ribbon), use vtkRibbonFilter. The input line must not have duplicate points, or normals at points that are parallel to the incoming/outgoing line segments. (Duplicate points can be removed with vtkCleanPolyData.)

 

See Also:

vtkRibbonFilter

 

Methods:

void vtkTubeFilter ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
static vtkTubeFilter *New ()
void SetRadius (float )
float GetRadius ()
void SetVaryRadius (int )
int GetVaryRadius ()
void SetVaryRadiusToVaryRadiusOff ()
void SetVaryRadiusToVaryRadiusByScalar ()
void SetVaryRadiusToVaryRadiusByVector ()
char *GetVaryRadiusAsString ()
void SetNumberOfSides (int )
int GetNumberOfSides ()
void SetRadiusFactor (float )
float GetRadiusFactor ()
void SetDefaultNormal (float ,float ,float )
void SetDefaultNormal (float *)
float *GetDefaultNormal ()
void SetUseDefaultNormal (int )
int GetUseDefaultNormal ()
void UseDefaultNormalOn ()
void UseDefaultNormalOff ()
void Execute ()

 

Detailed Method Descriptions:

Construct object with radius 0.5, radius variation turned off, the number of sides set to 3, and radius factor of 10.

static vtkTubeFilter *New ()

Set the minimum tube radius (minimum because the tube radius may vary).

void SetRadius (float )
float GetRadius ()

Turn on/off the variation of tube radius with scalar value.

void SetVaryRadius (int )
int GetVaryRadius ()
void SetVaryRadiusToVaryRadiusOff ()
void SetVaryRadiusToVaryRadiusByScalar ()
void SetVaryRadiusToVaryRadiusByVector ()
char *GetVaryRadiusAsString ()

Set the number of sides for the tube. At a minimum, number of sides is 3.

void SetNumberOfSides (int )
int GetNumberOfSides ()

Set the maximum tube radius in terms of a multiple of the minimum radius.

void SetRadiusFactor (float )
float GetRadiusFactor ()

Set the default normal to use if no normals are supplied, and the DefaultNormalOn is set.

void SetDefaultNormal (float ,float ,float )
void SetDefaultNormal (float *)
float *GetDefaultNormal ()

Set a boolean to control whether to use default normals. DefaultNormalOn is set.

void SetUseDefaultNormal (int )
int GetUseDefaultNormal ()
void UseDefaultNormalOn ()
void UseDefaultNormalOff ()