CleanPolyData
Introduction
vtkCleanPolyData merge exactly coincident points.
vtkCleanPolyData is a locator object to quickly locate points in 3D.
Methods
createDefaultLocator
Create default locator.
extend
Method used to decorate a given object (publicAPI+model) with vtkCleanPolyData characteristics.
| Argument | Type | Required | Description |
|---|---|---|---|
publicAPI | Yes | object on which methods will be bounds (public) | |
model | Yes | object on which data structure will be bounds (protected) | |
initialValues | ICleanPolyDataInitialValues | No | (default: {}) |
getAbsoluteTolerance
Get the absolute tolerance value.
getConvertLinesToPoints
Get whether to convert lines to points.
getConvertPolysToLines
Get whether to convert polygons to lines.
getConvertStripsToPolys
Get whether to convert strips to polygons.
getOutputPointsPrecision
Get the output points precision.
getPointMerging
Get whether to merge points.
getTolerance
Get the tolerance used for point merging.
getToleranceIsAbsolute
Get whether the tolerance is absolute or relative.
newInstance
Method used to create a new instance of vtkCleanPolyData.
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | ICleanPolyDataInitialValues | No | for pre-setting some of its content |
operateOnBounds
Operate on a bounding box by applying a transformation.
| Argument | Type | Required | Description |
|---|---|---|---|
inBounds | Bounds | Yes | The input bounding box. |
outBounds | Bounds | Yes | The output bounding box. |
operateOnPoint
Operate on a point by applying a transformation.
| Argument | Type | Required | Description |
|---|---|---|---|
point | Vector3 | Yes | The point to operate on. |
requestData
| Argument | Type | Required | Description |
|---|---|---|---|
inData | Yes | ||
outData | Yes |
setAbsoluteTolerance
Set the absolute tolerance value. This is only used if ToleranceIsAbsolute is true. Initial value is 0.0
| Argument | Type | Required | Description |
|---|---|---|---|
absoluteTolerance | Number | Yes | The absolute tolerance value. |
setConvertLinesToPoints
Set whether to convert lines to points.
| Argument | Type | Required | Description |
|---|---|---|---|
convertLinesToPoints | Boolean | Yes |
setConvertPolysToLines
Set whether to convert polygons to lines.
| Argument | Type | Required | Description |
|---|---|---|---|
convertPolysToLines | Boolean | Yes |
setConvertStripsToPolys
Set whether to convert strips to polygons.
| Argument | Type | Required | Description |
|---|---|---|---|
convertStripsToPolys | Boolean | Yes |
setOutputPointsPrecision
Set the desired output precision for points. Initial value is DEFAULT_PRECISION.
| Argument | Type | Required | Description |
|---|---|---|---|
outputPointsPrecision | DesiredOutputPrecision | Yes | The outputPointsPrecision value. |
setPointMerging
Set whether to merge points. Initial value is false.
| Argument | Type | Required | Description |
|---|---|---|---|
pointMerging | Boolean | Yes | The pointMerging value. |
setTolerance
Set the tolerance used for point merging. This is ignored if ToleranceIsAbsolute is true. Initial value is 0.0
| Argument | Type | Required | Description |
|---|---|---|---|
tolerance | Number | Yes | The tolerance value. |
setToleranceIsAbsolute
Set whether the tolerance is absolute or relative. Initial value is false (relative).
| Argument | Type | Required | Description |
|---|---|---|---|
toleranceIsAbsolute | Boolean | Yes | The toleranceIsAbsolute value. |