Man Page for vtkRibbonFilter
Table of Contents

NAME

vtkRibbonFilter - create oriented ribbons from lines defined in polygonal dataset

SYNOPSIS


#include "/opt/vtk-c++/graphics/vtkRibbonFilter.h"

class VTK_EXPORT vtkRibbonFilter : public vtkPolyDataToPolyDataFilter

vtkRibbonFilter();
static vtkRibbonFilter *New() {return new vtkRibbonFilter;};
const char *GetClassName() {return "vtkRibbonFilter";};
void PrintSelf(ostream& os, vtkIndent indent);
void SetWidth(float);
float GetWidth();
void SetAngle(float);
float GetAngle();
void SetVaryWidth(int);
int GetVaryWidth();
void VaryWidthOn();
void VaryWidthOff();
void SetWidthFactor(float);
float GetWidthFactor();

DESCRIPTION

vtkRibbonFilter is a filter to create oriented ribbons from lines defined in polygonal dataset. The orientation of the ribbon is along the line segments and perpendicular to "projected" line normals. Projected line normals are the original line normals projected to be perpendicular to the local line segment. An offset angle can be specified to rotate the ribbon with respect to the normal.

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

vtkTubeFilter

SUMMARY

void SetWidth(float)
Set the "half" width of the ribbon. If the width is allowed to vary, this is the minimum width.

void SetAngle(float)
Set the offset angle of the ribbon from the line normal.

void SetVaryWidth(int)
Turn on/off the variation of ribbon width with scalar value.

void SetWidthFactor(float)
Set the maximum ribbon width in terms of a multiple of the minimum width.

vtkRibbonFilter()
Construct ribbon so that width is 0.1, the width does not vary with scalar values, and the width factor is 2.0.


Table of Contents