|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vtk.vtkObjectBase vtk.vtkObject vtk.vtkProcessObject vtk.vtkSource vtk.vtkPolyDataSource vtk.vtkPolyDataToPolyDataFilter vtk.vtkCleanPolyData
vtkCleanPolyData - merge duplicate points, and/or remove unused points and/or remove degenerate cells. vtkCleanPolyData is a filter that takes polygonal data as input and generates polygonal data as output. vtkCleanPolyData can merge duplicate points (within specified tolerance and if enabled), eliminate points that are not used, and if enabled, transform degenerate cells into appropriate forms (for example, a triangle is converted into a line if two points of triangle are merged). Conversion of degenerate cells 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 vtkCleanPolyData will use the vtkMergePoints object to merge points (which is faster). 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. Note that merging of points can be disabled. In this case, a point locator will not be used, and points that are not used by any cells will be eliminated, but never merged. JavaBean wrapper for vtkCleanPolyData object.
Field Summary | |
protected java.beans.PropertyChangeSupport |
changes
|
Fields inherited from class vtk.vtkObjectBase |
vtkId |
Constructor Summary | |
|
vtkCleanPolyData()
|
protected |
vtkCleanPolyData(int dmy)
|
Method Summary | |
void |
convertLinesToPointsOff()
Turn on/off conversion of degenerate lines to points |
void |
convertLinesToPointsOn()
Turn on/off conversion of degenerate lines to points |
void |
convertPolysToLinesOff()
Turn on/off conversion of degenerate polys to lines |
void |
convertPolysToLinesOn()
Turn on/off conversion of degenerate polys to lines |
void |
convertStripsToPolysOff()
Turn on/off conversion of degenerate strips to polys |
void |
convertStripsToPolysOn()
Turn on/off conversion of degenerate strips to polys |
void |
createDefaultLocator()
Create default locator. |
double |
getAbsoluteTolerance()
Specify tolerance in absolute terms |
double |
getAbsoluteToleranceMaxValue()
Specify tolerance in absolute terms |
double |
getAbsoluteToleranceMinValue()
Specify tolerance in absolute terms |
java.lang.String |
getClassName()
Return the class name as a string. |
int |
getConvertLinesToPoints()
Turn on/off conversion of degenerate lines to points |
int |
getConvertPolysToLines()
Turn on/off conversion of degenerate polys to lines |
int |
getConvertStripsToPolys()
Turn on/off conversion of degenerate strips to polys |
vtkPointLocator |
getLocator()
Set/Get a spatial locator for speeding the search process. |
int |
getMTime()
Get the MTime of this object also considering the locator. |
int |
getPieceInvariant()
|
int |
getPointMerging()
Set/Get a boolean value that controls whether point merging is performed. |
vtkCleanPolyData |
getThisCleanPolyData()
|
double |
getTolerance()
Specify tolerance in terms of fraction of bounding box length. |
int |
getToleranceIsAbsolute()
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) |
double |
getToleranceMaxValue()
Specify tolerance in terms of fraction of bounding box length. |
double |
getToleranceMinValue()
Specify tolerance in terms of fraction of bounding box length. |
int |
isA(java.lang.String id0)
Return 1 if this class is the same type of (or a subclass of) the named class. |
void |
operateOnBounds(double[] id0,
double[] id1)
Perform operation on bounds |
void |
operateOnPoint(double[] id0,
double[] id1)
Perform operation on a point |
void |
pieceInvariantOff()
|
void |
pieceInvariantOn()
|
void |
pointMergingOff()
Set/Get a boolean value that controls whether point merging is performed. |
void |
pointMergingOn()
Set/Get a boolean value that controls whether point merging is performed. |
void |
releaseLocator()
Release locator |
void |
setAbsoluteTolerance(double id0)
Specify tolerance in absolute terms |
void |
setConvertLinesToPoints(int id0)
Turn on/off conversion of degenerate lines to points |
void |
setConvertPolysToLines(int id0)
Turn on/off conversion of degenerate polys to lines |
void |
setConvertStripsToPolys(int id0)
Turn on/off conversion of degenerate strips to polys |
void |
setLocator(vtkPointLocator id0)
Set/Get a spatial locator for speeding the search process. |
void |
setPieceInvariant(int id0)
|
void |
setPointMerging(int id0)
Set/Get a boolean value that controls whether point merging is performed. |
void |
setTolerance(double id0)
Specify tolerance in terms of fraction of bounding box length. |
void |
setToleranceIsAbsolute(int id0)
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) |
void |
toleranceIsAbsoluteOff()
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) |
void |
toleranceIsAbsoluteOn()
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) |
protected void |
VTKCastInit()
|
void |
VTKInit()
|
Methods inherited from class vtk.vtkPolyDataToPolyDataFilter |
getInput, getThisPolyDataToPolyDataFilter, setInput |
Methods inherited from class vtk.vtkPolyDataSource |
getOutput, getOutput, getThisPolyDataSource, setOutput |
Methods inherited from class vtk.vtkObject |
AddObserver, breakOnError, debugOff, debugOn, getDebug, getGlobalWarningDisplay, getThisObject, globalWarningDisplayOff, globalWarningDisplayOn, hasObserver, hasObserver, invokeEvent, invokeEvent, modified, Print, PrintRevisions, register, removeObserver, removeObservers, removeObservers, setDebug, setGlobalWarningDisplay |
Methods inherited from class vtk.vtkObjectBase |
addPropertyChangeListener, finalize, getReferenceCount, getThisObjectBase, isTypeOf, removePropertyChangeListener, setReferenceCount, VTKDelete |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.beans.PropertyChangeSupport changes
Constructor Detail |
public vtkCleanPolyData()
protected vtkCleanPolyData(int dmy)
Method Detail |
public vtkCleanPolyData getThisCleanPolyData()
public java.lang.String getClassName()
vtkObjectBase
getClassName
in class vtkPolyDataToPolyDataFilter
public int isA(java.lang.String id0)
vtkObjectBase
isA
in class vtkPolyDataToPolyDataFilter
public void setToleranceIsAbsolute(int id0)
public void toleranceIsAbsoluteOn()
public void toleranceIsAbsoluteOff()
public int getToleranceIsAbsolute()
public void setTolerance(double id0)
public double getToleranceMinValue()
public double getToleranceMaxValue()
public double getTolerance()
public void setAbsoluteTolerance(double id0)
public double getAbsoluteToleranceMinValue()
public double getAbsoluteToleranceMaxValue()
public double getAbsoluteTolerance()
public void setConvertLinesToPoints(int id0)
public void convertLinesToPointsOn()
public void convertLinesToPointsOff()
public int getConvertLinesToPoints()
public void setConvertPolysToLines(int id0)
public void convertPolysToLinesOn()
public void convertPolysToLinesOff()
public int getConvertPolysToLines()
public void setConvertStripsToPolys(int id0)
public void convertStripsToPolysOn()
public void convertStripsToPolysOff()
public int getConvertStripsToPolys()
public void setPointMerging(int id0)
public int getPointMerging()
public void pointMergingOn()
public void pointMergingOff()
public void setLocator(vtkPointLocator id0)
public vtkPointLocator getLocator()
public void createDefaultLocator()
public void releaseLocator()
public int getMTime()
getMTime
in class vtkObject
public void operateOnPoint(double[] id0, double[] id1)
public void operateOnBounds(double[] id0, double[] id1)
public void setPieceInvariant(int id0)
public int getPieceInvariant()
public void pieceInvariantOn()
public void pieceInvariantOff()
public void VTKInit()
VTKInit
in class vtkObject
protected void VTKCastInit()
VTKCastInit
in class vtkPolyDataToPolyDataFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |