#include <vtkCleanPolyData.h>
Inheritance diagram for vtkCleanPolyData:
Public Methods | |
const char * | GetClassName () |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetToleranceIsAbsolute (int) |
virtual void | ToleranceIsAbsoluteOn () |
virtual void | ToleranceIsAbsoluteOff () |
virtual int | GetToleranceIsAbsolute () |
virtual void | SetTolerance (float) |
virtual float | GetTolerance () |
virtual void | SetAbsoluteTolerance (float) |
virtual float | GetAbsoluteTolerance () |
virtual void | SetConvertLinesToPoints (int) |
virtual void | ConvertLinesToPointsOn () |
virtual void | ConvertLinesToPointsOff () |
virtual int | GetConvertLinesToPoints () |
virtual void | SetConvertPolysToLines (int) |
virtual void | ConvertPolysToLinesOn () |
virtual void | ConvertPolysToLinesOff () |
virtual int | GetConvertPolysToLines () |
virtual void | SetConvertStripsToPolys (int) |
virtual void | ConvertStripsToPolysOn () |
virtual void | ConvertStripsToPolysOff () |
virtual int | GetConvertStripsToPolys () |
void | SetLocator (vtkPointLocator *locator) |
virtual vtkPointLocator * | GetLocator () |
void | CreateDefaultLocator (void) |
void | ReleaseLocator (void) |
unsigned long int | GetMTime () |
virtual void | OperateOnPoint (float in[3], float out[3]) |
virtual void | OperateOnBounds (float in[6], float out[6]) |
Static Public Methods | |
vtkCleanPolyData * | New () |
Protected Methods | |
vtkCleanPolyData () | |
~vtkCleanPolyData () | |
vtkCleanPolyData (const vtkCleanPolyData &) | |
void | operator= (const vtkCleanPolyData &) |
void | Execute () |
Protected Attributes | |
float | Tolerance |
float | AbsoluteTolerance |
int | ConvertLinesToPoints |
int | ConvertPolysToLines |
int | ConvertStripsToPolys |
int | ToleranceIsAbsolute |
vtkPointLocator * | Locator |
vtkCleanPolyData is a filter that takes polygonal data as input and generates polygonal data as output. vtkCleanPolyData merges duplicate points (within specified tolerance), and if enabled transforms degenerate topology into appropriate form (for example, triangle is converted into line if two points of triangle are merged). Conversion of degenerate forms is controlled by the flags ConvertLinesToPoints, ConvertPolysToLines, ConvertStripsToPolys which act cumulatively such that a degenerate strip may become a poly The full set is Line with 1 points -> Vert (if ConvertLinesToPoints) Poly with 2 points -> Line (if ConvertPolysToLines) Poly with 1 points -> Vert (if ConvertPolysToLines && ConvertLinesToPoints) Strp with 3 points -> Poly (if ConvertStripsToPolys) Strp with 2 points -> Line (if ConvertStripsToPolys && ConvertPolysToLines) Strp with 1 points -> Vert (if ConvertStripsToPolys && ConvertPolysToLines && ConvertLinesToPoints)
If tolerance is specified precisely=0.0, then this object will use the vtkMergePoints object to merge points (very fast). Otherwise the slower vtkPointLocator is used. Before inserting points into the point locator, this class calls a function OperateOnPoint which can be used (in subclasses) to further refine the cleaning process. See vtkQuantizePolyDataPoints
|
Create default locator. Used to create one when none is specified. |
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkPolyDataToPolyDataFilter. Reimplemented in vtkQuantizePolyDataPoints. |
|
Get the MTime of this object also considering the locator. Reimplemented from vtkObject. |
|
Instantiate object with no start, end, or progress methods. Reimplemented from vtkPolyDataSource. Reimplemented in vtkQuantizePolyDataPoints. |
|
Perform operation on bounds Reimplemented in vtkQuantizePolyDataPoints. |
|
Perform operation on a point Reimplemented in vtkQuantizePolyDataPoints. |
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkSource. Reimplemented in vtkQuantizePolyDataPoints. |
|
Release locator |
|
Specify tolerance in absolute terms |
|
Turn on/off conversion of degenerate lines to points |
|
Turn on/off conversion of degenerate polys to lines |
|
Turn on/off conversion of degenerate strips to polys |
|
Set/Get a spatial locator for speeding the search process. By default an instance of vtkMergePoints is used. |
|
Specify tolerance in terms of fraction of bounding box length. |
|
By default ToleranceIsAbsolute is false and Tolerance is a fraction of Bounding box diagonal, if true, AbsoluteTolerance is used when adding points to locator (merging) |