Documentation for vtkGeometryFilter

vtkGeometryFilter - extract geometry from data (or convert data to polygonal type)

Super Class: vtkDataSetToPolyDataFilter

Description:

vtkGeometryFilter is a general-purpose filter to extract geometry (and associated data) from any type of dataset. Geometry is obtained as follows: all 0D, 1D, and 2D cells are extracted. All 2D faces that are used by only one 3D cell (i.e., boundary faces) are extracted. It also is possible to specify conditions on point ids, cell ids, and on bounding box (referred to as "Extent") to control the extraction process. This filter also may be used to convert any type of data to polygonal type. The conversion process may be less than satisfactory for some 3D datasets. For example, this filter will extract the outer surface of a volume or structured grid dataset. (For structured data you may want to use vtkStructuredPointsGeometryFilter, vtkStructuredGridGeometryFilter, vtkUnstructuredGridGeometryFilter, vtkRectilinearGridGeometryFilter, or vtkExtractVOI.)

 

Caveats:

When vtkGeometryFilter extracts cells (or boundaries of cells) it will (by default) merge duplicate vertices. This may cause problems in some cases. For example, if you've run vtkPolyDataNormals to generate normals, which may split meshes and create duplicate vertices, vtkGeometryFilter will merge these points back together. Turn merging off to prevent this from occuring.

 

See Also:

vtkStructuredPointsGeometryFilter vtkStructuredGridGeometryFilter vtkExtractGeometry vtkExtractVOI

 

Methods:

void vtkGeometryFilter ()
void vtkGeometryFilter ()
static vtkGeometryFilter *New ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
void SetPointClipping (int )
int GetPointClipping ()
void PointClippingOn ()
void PointClippingOff ()
void SetCellClipping (int )
int GetCellClipping ()
void CellClippingOn ()
void CellClippingOff ()
void SetExtentClipping (int )
int GetExtentClipping ()
void ExtentClippingOn ()
void ExtentClippingOff ()
void SetPointMinimum (int )
int GetPointMinimum ()
void SetPointMaximum (int )
int GetPointMaximum ()
void SetCellMinimum (int )
int GetCellMinimum ()
void SetCellMaximum (int )
int GetCellMaximum ()
void SetExtent (float ,float ,float ,float ,float ,float )
void SetExtent (float *)
float *GetExtent ()
void SetMerging (int )
int GetMerging ()
void MergingOn ()
void MergingOff ()
void SetLocator (vtkPointLocator *)
vtkPointLocator *GetLocator ()
void CreateDefaultLocator ()
unsigned long GetMTime ()
void SetLocator (vtkPointLocator &)
void Execute ()

 

Detailed Method Descriptions:

Turn on/off selection of geometry by point id.

void SetPointClipping (int )
int GetPointClipping ()
void PointClippingOn ()
void PointClippingOff ()

Turn on/off selection of geometry by cell id.

void SetCellClipping (int )
int GetCellClipping ()
void CellClippingOn ()
void CellClippingOff ()

Turn on/off selection of geometry via bounding box.

void SetExtentClipping (int )
int GetExtentClipping ()
void ExtentClippingOn ()
void ExtentClippingOff ()

Specify the minimum point id for point id selection.

void SetPointMinimum (int )
int GetPointMinimum ()

Specify the maximum point id for point id selection.

void SetPointMaximum (int )
int GetPointMaximum ()

Specify the minimum cell id for point id selection.

void SetCellMinimum (int )
int GetCellMinimum ()

Specify the maximum cell id for point id selection.

void SetCellMaximum (int )
int GetCellMaximum ()

Specify a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.

void SetExtent (float ,float ,float ,float ,float ,float )

Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.

void SetExtent (float *)
float *GetExtent ()

Turn on/off merging of coincident points. Note that is merging is on, points with different point attributes (e.g., normals) are merged, which may cause rendering artifacts.

void SetMerging (int )
int GetMerging ()
void MergingOn ()
void MergingOff ()

Set / get a spatial locator for merging points. By default an instance of vtkMergePoints is used.

void SetLocator (vtkPointLocator *)
vtkPointLocator *GetLocator ()

Create default locator. Used to create one when none is specified.

void CreateDefaultLocator ()

Return the MTime also considering the locator.

unsigned long GetMTime ()

For legacy compatibility. Do not use.

void SetLocator (vtkPointLocator &)