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

identify and fill holes in meshes More...

#include <vtkFillHolesFilter.h>

Inherits vtkPolyDataAlgorithm.

Public Member Functions

virtual void SetHoleSize (double)
 
virtual double GetHoleSize ()
 

Protected Member Functions

 vtkFillHolesFilter ()
 
 ~vtkFillHolesFilter ()
 
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 

Protected Attributes

double HoleSize
 
typedef vtkPolyDataAlgorithm Superclass
 
static vtkFillHolesFilterNew ()
 
static int IsTypeOf (const char *type)
 
static vtkFillHolesFilterSafeDownCast (vtkObjectBase *o)
 
virtual int IsA (const char *type)
 
vtkFillHolesFilterNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual vtkObjectBase * NewInstanceInternal () const
 

Detailed Description

identify and fill holes in meshes

vtkFillHolesFilter is a filter that identifies and fills holes in input vtkPolyData meshes. Holes are identified by locating boundary edges, linking them together into loops, and then triangulating the resulting loops. Note that you can specify an approximate limit to the size of the hole that can be filled.

Warning
Note that any mesh with boundary edges by definition has a topological hole. This even includes a reactangular grid (e.g., the output of vtkPlaneSource). In such situations, if the outer hole is filled, retriangulation of the hole will cause geometric overlap of the mesh. This can be prevented by using the hole size instance variable to prevent the larger holes from being triangulated.
Note this filter only operates on polygons and triangle strips. Vertices and polylines are passed through untouched.
Tests:
vtkFillHolesFilter (Tests)

Definition at line 49 of file vtkFillHolesFilter.h.

Member Typedef Documentation

typedef vtkPolyDataAlgorithm vtkFillHolesFilter::Superclass

Standard methods for instantiation, type information and printing.

Definition at line 55 of file vtkFillHolesFilter.h.

Constructor & Destructor Documentation

vtkFillHolesFilter::vtkFillHolesFilter ( )
protected
vtkFillHolesFilter::~vtkFillHolesFilter ( )
protected

Member Function Documentation

static vtkFillHolesFilter* vtkFillHolesFilter::New ( )
static

Standard methods for instantiation, type information and printing.

static int vtkFillHolesFilter::IsTypeOf ( const char *  type)
static

Standard methods for instantiation, type information and printing.

virtual int vtkFillHolesFilter::IsA ( const char *  type)
virtual

Standard methods for instantiation, type information and printing.

static vtkFillHolesFilter* vtkFillHolesFilter::SafeDownCast ( vtkObjectBase *  o)
static

Standard methods for instantiation, type information and printing.

virtual vtkObjectBase* vtkFillHolesFilter::NewInstanceInternal ( ) const
protectedvirtual

Standard methods for instantiation, type information and printing.

vtkFillHolesFilter* vtkFillHolesFilter::NewInstance ( ) const

Standard methods for instantiation, type information and printing.

void vtkFillHolesFilter::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

Standard methods for instantiation, type information and printing.

virtual void vtkFillHolesFilter::SetHoleSize ( double  )
virtual

Specify the maximum hole size to fill. This is represented as a radius to the bounding circumsphere containing the hole. Note that this is an approximate area; the actual area cannot be computed without first triangulating the hole.

virtual double vtkFillHolesFilter::GetHoleSize ( )
virtual

Specify the maximum hole size to fill. This is represented as a radius to the bounding circumsphere containing the hole. Note that this is an approximate area; the actual area cannot be computed without first triangulating the hole.

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

Member Data Documentation

double vtkFillHolesFilter::HoleSize
protected

Definition at line 74 of file vtkFillHolesFilter.h.


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