|
||||||||||
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.vtkSmoothPolyDataFilter
vtkSmoothPolyDataFilter.h - adjust point positions using Laplacian smoothing. vtkSmoothPolyDataFilter.h is a filter that adjusts point coordinates using Laplacian smoothing. The effect is to "relax" the mesh, making the cells better shaped and the vertices more evenly distributed. Note that this filter operates on the lines, polygons, and triangle strips composing an instance of vtkPolyData. Vertex or poly-vertex cells are never modified. The algorithm proceeds as follows. For each vertex v, a topological and geometric analysis is performed to determine which vertices are connected to v, and which cells are connected to v. Then, a connectivity array is constructed for each vertex. (The connectivity array is a list of lists of vertices that directly attach to each vertex.) Next, an iteration phase begins over all vertices. For each vertex v, the coordinates of v are modified according to an average of the connected vertices. (A relaxation factor is available to control the amount of displacement of v). The process repeats for each vertex. This pass over the list of vertices is a single iteration. Many iterations (generally around 20 or so) are repeated until the desired result is obtained. There are some special instance variables used to control the execution of this filter. (These ivars basically control what vertices can be smoothed, and the creation of the connectivity array.) The BoundarySmoothing ivar enables/disables the smoothing operation on vertices that are on the "boundary" of the mesh. A boundary vertex is one that is surrounded by a semi-cycle of polygons (or used by a single line). Another important ivar is FeatureEdgeSmoothing. If this ivar is enabled, then interior vertices are classified as either "simple", "interior edge", or "fixed", and smoothed differently. (Interior vertices are manifold vertices surrounded by a cycle of polygons; or used by two line cells.) The classification is based on the number of feature edges attached to v. A feature edge occurs when the angle between the two surface normals of a polygon sharing an edge is greater than the FeatureAngle ivar. Then, vertices used by no feature edges are classified "simple", vertices used by exactly two feature edges are classified "interior edge", and all others are "fixed" vertices. Once the classification is known, the vertices are smoothed differently. Corner (i.e., fixed) vertices are not smoothed at all. Simple vertices are smoothed as before (i.e., average of connected vertex coordinates). Interior edge vertices are smoothed only along their two connected edges, and only if the angle between the edges is less than the EdgeAngle ivar. The total smoothing can be controlled by using two ivars. The NumberOfIterations is a cap on the maximum number of smoothing passes. The Convergence ivar is a limit on the maximum point motion. If the maximum motion during an iteration is less than Convergence, then the smoothing process terminates. (Convergence is expressed as a fraction of the diagonal of the bounding box.) There are two instance variables that control the generation of error data. If the ivar GenerateErrorScalars is on, then a scalar value indicating the distance of each vertex from its original position is computed. If the ivar GenerateErrorVectors is on, then a vector representing change in position is computed. Optionally you can further control the smoothing process by defining a second input: the Source. If defined, the input mesh is constrained to lie on the surface defined by the Source ivar. JavaBean wrapper for vtkSmoothPolyDataFilter object.
vtkWindowedSincPolyDataFilter
,
vtkDecimate
,
Serialized FormField Summary | |
protected java.beans.PropertyChangeSupport |
changes
|
Fields inherited from class vtk.vtkObjectBase |
vtkId |
Constructor Summary | |
|
vtkSmoothPolyDataFilter()
|
protected |
vtkSmoothPolyDataFilter(int dmy)
|
Method Summary | |
void |
boundarySmoothingOff()
Turn on/off the smoothing of vertices on the boundary of the mesh. |
void |
boundarySmoothingOn()
Turn on/off the smoothing of vertices on the boundary of the mesh. |
void |
featureEdgeSmoothingOff()
Turn on/off smoothing along sharp interior edges. |
void |
featureEdgeSmoothingOn()
Turn on/off smoothing along sharp interior edges. |
void |
generateErrorScalarsOff()
Turn on/off the generation of scalar distance values. |
void |
generateErrorScalarsOn()
Turn on/off the generation of scalar distance values. |
void |
generateErrorVectorsOff()
Turn on/off the generation of error vectors. |
void |
generateErrorVectorsOn()
Turn on/off the generation of error vectors. |
int |
getBoundarySmoothing()
Turn on/off the smoothing of vertices on the boundary of the mesh. |
java.lang.String |
getClassName()
Return the class name as a string. |
double |
getConvergence()
Specify a convergence criterion for the iteration process. |
double |
getConvergenceMaxValue()
Specify a convergence criterion for the iteration process. |
double |
getConvergenceMinValue()
Specify a convergence criterion for the iteration process. |
double |
getEdgeAngle()
Specify the edge angle to control smoothing along edges (either interior or boundary). |
double |
getEdgeAngleMaxValue()
Specify the edge angle to control smoothing along edges (either interior or boundary). |
double |
getEdgeAngleMinValue()
Specify the edge angle to control smoothing along edges (either interior or boundary). |
double |
getFeatureAngle()
Specify the feature angle for sharp edge identification. |
double |
getFeatureAngleMaxValue()
Specify the feature angle for sharp edge identification. |
double |
getFeatureAngleMinValue()
Specify the feature angle for sharp edge identification. |
int |
getFeatureEdgeSmoothing()
Turn on/off smoothing along sharp interior edges. |
int |
getGenerateErrorScalars()
Turn on/off the generation of scalar distance values. |
int |
getGenerateErrorVectors()
Turn on/off the generation of error vectors. |
int |
getNumberOfIterations()
Specify the number of iterations for Laplacian smoothing, |
int |
getNumberOfIterationsMaxValue()
Specify the number of iterations for Laplacian smoothing, |
int |
getNumberOfIterationsMinValue()
Specify the number of iterations for Laplacian smoothing, |
double |
getRelaxationFactor()
Specify the relaxation factor for Laplacian smoothing. |
vtkPolyData |
getSource()
Specify the source object which is used to constrain smoothing. |
vtkSmoothPolyDataFilter |
getThisSmoothPolyDataFilter()
|
int |
isA(java.lang.String id0)
Return 1 if this class is the same type of (or a subclass of) the named class. |
void |
setBoundarySmoothing(int id0)
Turn on/off the smoothing of vertices on the boundary of the mesh. |
void |
setConvergence(double id0)
Specify a convergence criterion for the iteration process. |
void |
setEdgeAngle(double id0)
Specify the edge angle to control smoothing along edges (either interior or boundary). |
void |
setFeatureAngle(double id0)
Specify the feature angle for sharp edge identification. |
void |
setFeatureEdgeSmoothing(int id0)
Turn on/off smoothing along sharp interior edges. |
void |
setGenerateErrorScalars(int id0)
Turn on/off the generation of scalar distance values. |
void |
setGenerateErrorVectors(int id0)
Turn on/off the generation of error vectors. |
void |
setNumberOfIterations(int id0)
Specify the number of iterations for Laplacian smoothing, |
void |
setRelaxationFactor(double id0)
Specify the relaxation factor for Laplacian smoothing. |
void |
setSource(vtkPolyData id0)
Specify the source object which is used to constrain smoothing. |
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, getMTime, 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 vtkSmoothPolyDataFilter()
protected vtkSmoothPolyDataFilter(int dmy)
Method Detail |
public vtkSmoothPolyDataFilter getThisSmoothPolyDataFilter()
public java.lang.String getClassName()
vtkObjectBase
getClassName
in class vtkPolyDataToPolyDataFilter
public int isA(java.lang.String id0)
vtkObjectBase
isA
in class vtkPolyDataToPolyDataFilter
public void setConvergence(double id0)
public double getConvergenceMinValue()
public double getConvergenceMaxValue()
public double getConvergence()
public void setNumberOfIterations(int id0)
public int getNumberOfIterationsMinValue()
public int getNumberOfIterationsMaxValue()
public int getNumberOfIterations()
public void setRelaxationFactor(double id0)
public double getRelaxationFactor()
public void setFeatureEdgeSmoothing(int id0)
public int getFeatureEdgeSmoothing()
public void featureEdgeSmoothingOn()
public void featureEdgeSmoothingOff()
public void setFeatureAngle(double id0)
public double getFeatureAngleMinValue()
public double getFeatureAngleMaxValue()
public double getFeatureAngle()
public void setEdgeAngle(double id0)
public double getEdgeAngleMinValue()
public double getEdgeAngleMaxValue()
public double getEdgeAngle()
public void setBoundarySmoothing(int id0)
public int getBoundarySmoothing()
public void boundarySmoothingOn()
public void boundarySmoothingOff()
public void setGenerateErrorScalars(int id0)
public int getGenerateErrorScalars()
public void generateErrorScalarsOn()
public void generateErrorScalarsOff()
public void setGenerateErrorVectors(int id0)
public int getGenerateErrorVectors()
public void generateErrorVectorsOn()
public void generateErrorVectorsOff()
public void setSource(vtkPolyData id0)
public vtkPolyData getSource()
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 |