VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkShrinkPolyData Class Reference

shrink cells composing PolyData More...

#include <vtkShrinkPolyData.h>

Inherits vtkPolyDataAlgorithm.

Public Types

typedef vtkPolyDataAlgorithm Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkShrinkPolyDataNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetShrinkFactor (double)
 
virtual double GetShrinkFactor ()
 

Static Public Member Functions

static vtkShrinkPolyDataNew ()
 
static int IsTypeOf (const char *type)
 
static vtkShrinkPolyDataSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkShrinkPolyData (double sf=0.5)
 
 ~vtkShrinkPolyData ()
 
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 

Protected Attributes

double ShrinkFactor
 

Detailed Description

shrink cells composing PolyData

vtkShrinkPolyData shrinks cells composing a polygonal dataset (e.g., vertices, lines, polygons, and triangle strips) 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 dataset type of this filter is polygonal data.

During execution the filter passes its input cell data to its output. Point data attributes are copied to the points created during the shrinking process.

Warning
It is possible to turn cells inside out or cause self intersection in special cases. Users should use the vtkTriangleFilter to triangulate meshes that contain triangle strips.
See Also
vtkShrinkFilter
Examples:
vtkShrinkPolyData (Examples)
Tests:
vtkShrinkPolyData (Tests)

Definition at line 50 of file vtkShrinkPolyData.h.

Member Typedef Documentation

typedef vtkPolyDataAlgorithm vtkShrinkPolyData::Superclass

Definition at line 54 of file vtkShrinkPolyData.h.

Constructor & Destructor Documentation

vtkShrinkPolyData::vtkShrinkPolyData ( double  sf = 0.5)
protected
vtkShrinkPolyData::~vtkShrinkPolyData ( )
inlineprotected

Definition at line 69 of file vtkShrinkPolyData.h.

Member Function Documentation

static vtkShrinkPolyData* vtkShrinkPolyData::New ( )
static
static int vtkShrinkPolyData::IsTypeOf ( const char *  type)
static
virtual int vtkShrinkPolyData::IsA ( const char *  type)
virtual
static vtkShrinkPolyData* vtkShrinkPolyData::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkShrinkPolyData::NewInstanceInternal ( ) const
protectedvirtual
vtkShrinkPolyData* vtkShrinkPolyData::NewInstance ( ) const
void vtkShrinkPolyData::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual void vtkShrinkPolyData::SetShrinkFactor ( double  )
virtual

Set the fraction of shrink for each cell.

virtual double vtkShrinkPolyData::GetShrinkFactor ( )
virtual

Get the fraction of shrink for each cell.

int vtkShrinkPolyData::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protected

Member Data Documentation

double vtkShrinkPolyData::ShrinkFactor
protected

Definition at line 72 of file vtkShrinkPolyData.h.


The documentation for this class was generated from the following file: