ActiViz .NET  5.8.0
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Private Member Functions | Static Private Member Functions
Kitware.VTK.vtkSmoothPolyDataFilter Class Reference

vtkSmoothPolyDataFilter - adjust point positions using Laplacian smoothing More...

Inheritance diagram for Kitware.VTK.vtkSmoothPolyDataFilter:
[legend]
Collaboration diagram for Kitware.VTK.vtkSmoothPolyDataFilter:
[legend]

List of all members.

Public Member Functions

 vtkSmoothPolyDataFilter (IntPtr rawCppThis, bool callDisposalMethod, bool strong)
 Automatically generated constructor - called from generated code. DO NOT call directly.
 vtkSmoothPolyDataFilter ()
 Construct object with number of iterations 20; relaxation factor .01; feature edge smoothing turned off; feature angle 45 degrees; edge angle 15 degrees; and boundary smoothing turned on. Error scalars and vectors are not generated (by default). The convergence criterion is 0.0 of the bounding box diagonal.
virtual void BoundarySmoothingOff ()
 Turn on/off the smoothing of vertices on the boundary of the mesh.
virtual void BoundarySmoothingOn ()
 Turn on/off the smoothing of vertices on the boundary of the mesh.
virtual void FeatureEdgeSmoothingOff ()
 Turn on/off smoothing along sharp interior edges.
virtual void FeatureEdgeSmoothingOn ()
 Turn on/off smoothing along sharp interior edges.
virtual void GenerateErrorScalarsOff ()
 Turn on/off the generation of scalar distance values.
virtual void GenerateErrorScalarsOn ()
 Turn on/off the generation of scalar distance values.
virtual void GenerateErrorVectorsOff ()
 Turn on/off the generation of error vectors.
virtual void GenerateErrorVectorsOn ()
 Turn on/off the generation of error vectors.
virtual int GetBoundarySmoothing ()
 Turn on/off the smoothing of vertices on the boundary of the mesh.
virtual double GetConvergence ()
 Specify a convergence criterion for the iteration process. Smaller numbers result in more smoothing iterations.
virtual double GetConvergenceMaxValue ()
 Specify a convergence criterion for the iteration process. Smaller numbers result in more smoothing iterations.
virtual double GetConvergenceMinValue ()
 Specify a convergence criterion for the iteration process. Smaller numbers result in more smoothing iterations.
virtual double GetEdgeAngle ()
 Specify the edge angle to control smoothing along edges (either interior or boundary).
virtual double GetEdgeAngleMaxValue ()
 Specify the edge angle to control smoothing along edges (either interior or boundary).
virtual double GetEdgeAngleMinValue ()
 Specify the edge angle to control smoothing along edges (either interior or boundary).
virtual double GetFeatureAngle ()
 Specify the feature angle for sharp edge identification.
virtual double GetFeatureAngleMaxValue ()
 Specify the feature angle for sharp edge identification.
virtual double GetFeatureAngleMinValue ()
 Specify the feature angle for sharp edge identification.
virtual int GetFeatureEdgeSmoothing ()
 Turn on/off smoothing along sharp interior edges.
virtual int GetGenerateErrorScalars ()
 Turn on/off the generation of scalar distance values.
virtual int GetGenerateErrorVectors ()
 Turn on/off the generation of error vectors.
virtual int GetNumberOfIterations ()
 Specify the number of iterations for Laplacian smoothing,.
virtual int GetNumberOfIterationsMaxValue ()
 Specify the number of iterations for Laplacian smoothing,.
virtual int GetNumberOfIterationsMinValue ()
 Specify the number of iterations for Laplacian smoothing,.
virtual double GetRelaxationFactor ()
 Specify the relaxation factor for Laplacian smoothing. As in all iterative methods, the stability of the process is sensitive to this parameter. In general, small relaxation factors and large numbers of iterations are more stable than larger relaxation factors and smaller numbers of iterations.
vtkPolyData GetSource ()
 Specify the source object which is used to constrain smoothing. The source defines a surface that the input (as it is smoothed) is constrained to lie upon.
override int IsA (string type)
 Undocumented Block.
new vtkSmoothPolyDataFilter NewInstance ()
 Undocumented Block.
virtual void SetBoundarySmoothing (int _arg)
 Turn on/off the smoothing of vertices on the boundary of the mesh.
virtual void SetConvergence (double _arg)
 Specify a convergence criterion for the iteration process. Smaller numbers result in more smoothing iterations.
virtual void SetEdgeAngle (double _arg)
 Specify the edge angle to control smoothing along edges (either interior or boundary).
virtual void SetFeatureAngle (double _arg)
 Specify the feature angle for sharp edge identification.
virtual void SetFeatureEdgeSmoothing (int _arg)
 Turn on/off smoothing along sharp interior edges.
virtual void SetGenerateErrorScalars (int _arg)
 Turn on/off the generation of scalar distance values.
virtual void SetGenerateErrorVectors (int _arg)
 Turn on/off the generation of error vectors.
virtual void SetNumberOfIterations (int _arg)
 Specify the number of iterations for Laplacian smoothing,.
virtual void SetRelaxationFactor (double _arg)
 Specify the relaxation factor for Laplacian smoothing. As in all iterative methods, the stability of the process is sensitive to this parameter. In general, small relaxation factors and large numbers of iterations are more stable than larger relaxation factors and smaller numbers of iterations.
void SetSource (vtkPolyData source)
 Specify the source object which is used to constrain smoothing. The source defines a surface that the input (as it is smoothed) is constrained to lie upon.

Static Public Member Functions

static new vtkSmoothPolyDataFilter New ()
 Construct object with number of iterations 20; relaxation factor .01; feature edge smoothing turned off; feature angle 45 degrees; edge angle 15 degrees; and boundary smoothing turned on. Error scalars and vectors are not generated (by default). The convergence criterion is 0.0 of the bounding box diagonal.
static new int IsTypeOf (string type)
 Undocumented Block.
static new vtkSmoothPolyDataFilter SafeDownCast (vtkObjectBase o)
 Undocumented Block.

Public Attributes

new const string MRFullTypeName = "Kitware.VTK.vtkSmoothPolyDataFilter"
 Automatically generated type registration mechanics.

Static Public Attributes

static new readonly string MRClassNameKey = "23vtkSmoothPolyDataFilter"
 Automatically generated type registration mechanics.

Protected Member Functions

override void Dispose (bool disposing)
 Automatically generated protected Dispose method - called from public Dispose or the C# destructor. DO NOT call directly.

Private Member Functions

static internal IntPtr vtkSmoothPolyDataFilter_New (ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal void vtkSmoothPolyDataFilter_BoundarySmoothingOff_01 (HandleRef pThis)
static internal void vtkSmoothPolyDataFilter_BoundarySmoothingOn_02 (HandleRef pThis)
static internal void vtkSmoothPolyDataFilter_FeatureEdgeSmoothingOff_03 (HandleRef pThis)
static internal void vtkSmoothPolyDataFilter_FeatureEdgeSmoothingOn_04 (HandleRef pThis)
static internal void vtkSmoothPolyDataFilter_GenerateErrorScalarsOff_05 (HandleRef pThis)
static internal void vtkSmoothPolyDataFilter_GenerateErrorScalarsOn_06 (HandleRef pThis)
static internal void vtkSmoothPolyDataFilter_GenerateErrorVectorsOff_07 (HandleRef pThis)
static internal void vtkSmoothPolyDataFilter_GenerateErrorVectorsOn_08 (HandleRef pThis)
static internal int vtkSmoothPolyDataFilter_GetBoundarySmoothing_09 (HandleRef pThis)
static internal double vtkSmoothPolyDataFilter_GetConvergence_10 (HandleRef pThis)
static internal double vtkSmoothPolyDataFilter_GetConvergenceMaxValue_11 (HandleRef pThis)
static internal double vtkSmoothPolyDataFilter_GetConvergenceMinValue_12 (HandleRef pThis)
static internal double vtkSmoothPolyDataFilter_GetEdgeAngle_13 (HandleRef pThis)
static internal double vtkSmoothPolyDataFilter_GetEdgeAngleMaxValue_14 (HandleRef pThis)
static internal double vtkSmoothPolyDataFilter_GetEdgeAngleMinValue_15 (HandleRef pThis)
static internal double vtkSmoothPolyDataFilter_GetFeatureAngle_16 (HandleRef pThis)
static internal double vtkSmoothPolyDataFilter_GetFeatureAngleMaxValue_17 (HandleRef pThis)
static internal double vtkSmoothPolyDataFilter_GetFeatureAngleMinValue_18 (HandleRef pThis)
static internal int vtkSmoothPolyDataFilter_GetFeatureEdgeSmoothing_19 (HandleRef pThis)
static internal int vtkSmoothPolyDataFilter_GetGenerateErrorScalars_20 (HandleRef pThis)
static internal int vtkSmoothPolyDataFilter_GetGenerateErrorVectors_21 (HandleRef pThis)
static internal int vtkSmoothPolyDataFilter_GetNumberOfIterations_22 (HandleRef pThis)
static internal int vtkSmoothPolyDataFilter_GetNumberOfIterationsMaxValue_23 (HandleRef pThis)
static internal int vtkSmoothPolyDataFilter_GetNumberOfIterationsMinValue_24 (HandleRef pThis)
static internal double vtkSmoothPolyDataFilter_GetRelaxationFactor_25 (HandleRef pThis)
static internal IntPtr vtkSmoothPolyDataFilter_GetSource_26 (HandleRef pThis, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal int vtkSmoothPolyDataFilter_IsA_27 (HandleRef pThis, string type)
static internal int vtkSmoothPolyDataFilter_IsTypeOf_28 (string type)
static internal IntPtr vtkSmoothPolyDataFilter_NewInstance_30 (HandleRef pThis, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal IntPtr vtkSmoothPolyDataFilter_SafeDownCast_31 (HandleRef o, ref uint mteStatus, ref uint mteIndex, ref uint rawRefCount)
static internal void vtkSmoothPolyDataFilter_SetBoundarySmoothing_32 (HandleRef pThis, int _arg)
static internal void vtkSmoothPolyDataFilter_SetConvergence_33 (HandleRef pThis, double _arg)
static internal void vtkSmoothPolyDataFilter_SetEdgeAngle_34 (HandleRef pThis, double _arg)
static internal void vtkSmoothPolyDataFilter_SetFeatureAngle_35 (HandleRef pThis, double _arg)
static internal void vtkSmoothPolyDataFilter_SetFeatureEdgeSmoothing_36 (HandleRef pThis, int _arg)
static internal void vtkSmoothPolyDataFilter_SetGenerateErrorScalars_37 (HandleRef pThis, int _arg)
static internal void vtkSmoothPolyDataFilter_SetGenerateErrorVectors_38 (HandleRef pThis, int _arg)
static internal void vtkSmoothPolyDataFilter_SetNumberOfIterations_39 (HandleRef pThis, int _arg)
static internal void vtkSmoothPolyDataFilter_SetRelaxationFactor_40 (HandleRef pThis, double _arg)
static internal void vtkSmoothPolyDataFilter_SetSource_41 (HandleRef pThis, HandleRef source)

Static Private Member Functions

static vtkSmoothPolyDataFilter ()
 Automatically generated type registration mechanics.

Detailed Description

vtkSmoothPolyDataFilter - adjust point positions using Laplacian smoothing

Description vtkSmoothPolyDataFilter 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.

Caveats

The Laplacian operation reduces high frequency information in the geometry of the mesh. With excessive smoothing important details may be lost, and the surface may shrink towards the centroid. Enabling FeatureEdgeSmoothing helps reduce this effect, but cannot entirely eliminate it. You may also wish to try vtkWindowedSincPolyDataFilter. It does a better job of minimizing shrinkage.

vtkWindowedSincPolyDataFilter vtkDecimate vtkDecimatePro


Constructor & Destructor Documentation

Automatically generated type registration mechanics.

Kitware.VTK.vtkSmoothPolyDataFilter.vtkSmoothPolyDataFilter ( IntPtr  rawCppThis,
bool  callDisposalMethod,
bool  strong 
)

Automatically generated constructor - called from generated code. DO NOT call directly.

Construct object with number of iterations 20; relaxation factor .01; feature edge smoothing turned off; feature angle 45 degrees; edge angle 15 degrees; and boundary smoothing turned on. Error scalars and vectors are not generated (by default). The convergence criterion is 0.0 of the bounding box diagonal.


Member Function Documentation

Turn on/off the smoothing of vertices on the boundary of the mesh.

Turn on/off the smoothing of vertices on the boundary of the mesh.

override void Kitware.VTK.vtkSmoothPolyDataFilter.Dispose ( bool  disposing) [protected]

Automatically generated protected Dispose method - called from public Dispose or the C# destructor. DO NOT call directly.

Reimplemented from Kitware.VTK.vtkPolyDataAlgorithm.

Turn on/off smoothing along sharp interior edges.

Turn on/off smoothing along sharp interior edges.

Turn on/off the generation of scalar distance values.

Turn on/off the generation of scalar distance values.

Turn on/off the generation of error vectors.

Turn on/off the generation of error vectors.

Turn on/off the smoothing of vertices on the boundary of the mesh.

Specify a convergence criterion for the iteration process. Smaller numbers result in more smoothing iterations.

Specify a convergence criterion for the iteration process. Smaller numbers result in more smoothing iterations.

Specify a convergence criterion for the iteration process. Smaller numbers result in more smoothing iterations.

Specify the edge angle to control smoothing along edges (either interior or boundary).

Specify the edge angle to control smoothing along edges (either interior or boundary).

Specify the edge angle to control smoothing along edges (either interior or boundary).

Specify the feature angle for sharp edge identification.

Specify the feature angle for sharp edge identification.

Specify the feature angle for sharp edge identification.

Turn on/off smoothing along sharp interior edges.

Turn on/off the generation of scalar distance values.

Turn on/off the generation of error vectors.

Specify the number of iterations for Laplacian smoothing,.

Specify the number of iterations for Laplacian smoothing,.

Specify the number of iterations for Laplacian smoothing,.

Specify the relaxation factor for Laplacian smoothing. As in all iterative methods, the stability of the process is sensitive to this parameter. In general, small relaxation factors and large numbers of iterations are more stable than larger relaxation factors and smaller numbers of iterations.

Specify the source object which is used to constrain smoothing. The source defines a surface that the input (as it is smoothed) is constrained to lie upon.

Here is the call graph for this function:

override int Kitware.VTK.vtkSmoothPolyDataFilter.IsA ( string  type) [virtual]

Undocumented Block.

Reimplemented from Kitware.VTK.vtkPolyDataAlgorithm.

static new int Kitware.VTK.vtkSmoothPolyDataFilter.IsTypeOf ( string  type) [static]

Undocumented Block.

Reimplemented from Kitware.VTK.vtkPolyDataAlgorithm.

Construct object with number of iterations 20; relaxation factor .01; feature edge smoothing turned off; feature angle 45 degrees; edge angle 15 degrees; and boundary smoothing turned on. Error scalars and vectors are not generated (by default). The convergence criterion is 0.0 of the bounding box diagonal.

Reimplemented from Kitware.VTK.vtkPolyDataAlgorithm.

Undocumented Block.

Reimplemented from Kitware.VTK.vtkPolyDataAlgorithm.

Undocumented Block.

Reimplemented from Kitware.VTK.vtkPolyDataAlgorithm.

Here is the call graph for this function:

virtual void Kitware.VTK.vtkSmoothPolyDataFilter.SetBoundarySmoothing ( int  _arg) [virtual]

Turn on/off the smoothing of vertices on the boundary of the mesh.

virtual void Kitware.VTK.vtkSmoothPolyDataFilter.SetConvergence ( double  _arg) [virtual]

Specify a convergence criterion for the iteration process. Smaller numbers result in more smoothing iterations.

virtual void Kitware.VTK.vtkSmoothPolyDataFilter.SetEdgeAngle ( double  _arg) [virtual]

Specify the edge angle to control smoothing along edges (either interior or boundary).

virtual void Kitware.VTK.vtkSmoothPolyDataFilter.SetFeatureAngle ( double  _arg) [virtual]

Specify the feature angle for sharp edge identification.

Turn on/off smoothing along sharp interior edges.

Turn on/off the generation of scalar distance values.

Turn on/off the generation of error vectors.

virtual void Kitware.VTK.vtkSmoothPolyDataFilter.SetNumberOfIterations ( int  _arg) [virtual]

Specify the number of iterations for Laplacian smoothing,.

virtual void Kitware.VTK.vtkSmoothPolyDataFilter.SetRelaxationFactor ( double  _arg) [virtual]

Specify the relaxation factor for Laplacian smoothing. As in all iterative methods, the stability of the process is sensitive to this parameter. In general, small relaxation factors and large numbers of iterations are more stable than larger relaxation factors and smaller numbers of iterations.

Specify the source object which is used to constrain smoothing. The source defines a surface that the input (as it is smoothed) is constrained to lie upon.

static internal double Kitware.VTK.vtkSmoothPolyDataFilter.vtkSmoothPolyDataFilter_GetConvergence_10 ( HandleRef  pThis) [private]
static internal double Kitware.VTK.vtkSmoothPolyDataFilter.vtkSmoothPolyDataFilter_GetEdgeAngle_13 ( HandleRef  pThis) [private]
static internal double Kitware.VTK.vtkSmoothPolyDataFilter.vtkSmoothPolyDataFilter_GetEdgeAngleMaxValue_14 ( HandleRef  pThis) [private]
static internal double Kitware.VTK.vtkSmoothPolyDataFilter.vtkSmoothPolyDataFilter_GetEdgeAngleMinValue_15 ( HandleRef  pThis) [private]
static internal double Kitware.VTK.vtkSmoothPolyDataFilter.vtkSmoothPolyDataFilter_GetFeatureAngle_16 ( HandleRef  pThis) [private]
static internal double Kitware.VTK.vtkSmoothPolyDataFilter.vtkSmoothPolyDataFilter_GetRelaxationFactor_25 ( HandleRef  pThis) [private]
static internal IntPtr Kitware.VTK.vtkSmoothPolyDataFilter.vtkSmoothPolyDataFilter_GetSource_26 ( HandleRef  pThis,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal int Kitware.VTK.vtkSmoothPolyDataFilter.vtkSmoothPolyDataFilter_IsA_27 ( HandleRef  pThis,
string  type 
) [private]
static internal int Kitware.VTK.vtkSmoothPolyDataFilter.vtkSmoothPolyDataFilter_IsTypeOf_28 ( string  type) [private]
static internal IntPtr Kitware.VTK.vtkSmoothPolyDataFilter.vtkSmoothPolyDataFilter_New ( ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal IntPtr Kitware.VTK.vtkSmoothPolyDataFilter.vtkSmoothPolyDataFilter_NewInstance_30 ( HandleRef  pThis,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal IntPtr Kitware.VTK.vtkSmoothPolyDataFilter.vtkSmoothPolyDataFilter_SafeDownCast_31 ( HandleRef  o,
ref uint  mteStatus,
ref uint  mteIndex,
ref uint  rawRefCount 
) [private]
static internal void Kitware.VTK.vtkSmoothPolyDataFilter.vtkSmoothPolyDataFilter_SetBoundarySmoothing_32 ( HandleRef  pThis,
int  _arg 
) [private]
static internal void Kitware.VTK.vtkSmoothPolyDataFilter.vtkSmoothPolyDataFilter_SetConvergence_33 ( HandleRef  pThis,
double  _arg 
) [private]
static internal void Kitware.VTK.vtkSmoothPolyDataFilter.vtkSmoothPolyDataFilter_SetEdgeAngle_34 ( HandleRef  pThis,
double  _arg 
) [private]
static internal void Kitware.VTK.vtkSmoothPolyDataFilter.vtkSmoothPolyDataFilter_SetFeatureAngle_35 ( HandleRef  pThis,
double  _arg 
) [private]
static internal void Kitware.VTK.vtkSmoothPolyDataFilter.vtkSmoothPolyDataFilter_SetFeatureEdgeSmoothing_36 ( HandleRef  pThis,
int  _arg 
) [private]
static internal void Kitware.VTK.vtkSmoothPolyDataFilter.vtkSmoothPolyDataFilter_SetGenerateErrorScalars_37 ( HandleRef  pThis,
int  _arg 
) [private]
static internal void Kitware.VTK.vtkSmoothPolyDataFilter.vtkSmoothPolyDataFilter_SetGenerateErrorVectors_38 ( HandleRef  pThis,
int  _arg 
) [private]
static internal void Kitware.VTK.vtkSmoothPolyDataFilter.vtkSmoothPolyDataFilter_SetNumberOfIterations_39 ( HandleRef  pThis,
int  _arg 
) [private]
static internal void Kitware.VTK.vtkSmoothPolyDataFilter.vtkSmoothPolyDataFilter_SetRelaxationFactor_40 ( HandleRef  pThis,
double  _arg 
) [private]
static internal void Kitware.VTK.vtkSmoothPolyDataFilter.vtkSmoothPolyDataFilter_SetSource_41 ( HandleRef  pThis,
HandleRef  source 
) [private]

Member Data Documentation

new readonly string Kitware.VTK.vtkSmoothPolyDataFilter.MRClassNameKey = "23vtkSmoothPolyDataFilter" [static]

Automatically generated type registration mechanics.

Reimplemented from Kitware.VTK.vtkPolyDataAlgorithm.

new const string Kitware.VTK.vtkSmoothPolyDataFilter.MRFullTypeName = "Kitware.VTK.vtkSmoothPolyDataFilter"

Automatically generated type registration mechanics.

Reimplemented from Kitware.VTK.vtkPolyDataAlgorithm.


The documentation for this class was generated from the following file: