Man Page for vtkShrinkFilter
Table of Contents

NAME

vtkShrinkFilter - shrink cells composing an arbitrary data set

SYNOPSIS


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

class VTK_EXPORT vtkShrinkFilter : public vtkDataSetToUnstructuredGridFilter

vtkShrinkFilter(float sf=0.5);
static vtkShrinkFilter *New() {return new vtkShrinkFilter;};
const char *GetClassName() {return "vtkShrinkFilter";};
void PrintSelf(ostream& os, vtkIndent indent);
void SetShrinkFactor(float);
float GetShrinkFactor();

DESCRIPTION

vtkShrinkFilter shrinks cells composing an arbitrary data set towards their centroid. The centroid of a cell is computed as the average position of the cell points. Shrinking results in disconnecting the cells from one another. The output of this filter is of general dataset type vtkUnstructuredGrid.

CAVEATS

It is possible to turn cells inside out or cause self intersection in special cases.

SEE ALSO

vtkShrinkPolyData

SUMMARY

void SetShrinkFactor(float)
Set the fraction of shrink for each cell.

float GetShrinkFactor()
Get the fraction of shrink for each cell.


Table of Contents