Description
Smoothes the currently selected faces(region) according to the specified parameters and returns an RFErrorCode value indicating whether an error occurs.
Syntax
Function RFMeshTools.SmoothRegion(method As RFSmoothMethod, iter As Long, weight As Double, tolerance As Double, bMoveBoundary As Boolean, bConstraint As Boolean, bPreserveSharpEdge As Boolean, bPreserveVolume As Boolean) As RFErrorCode
The SmoothRegion syntax has these parts:
| Part | Description |
|---|---|
| method | [IN] RFSmoothMethod Required. Smoothing method to apply. |
| iter | [IN] Long Required. Number of iterations. |
| weight | [IN] Double Required. Weight value to apply a smoothing operation ranging from 0.0 to 1.0 |
| tolerance | [IN] Double Required. Allowable distance difference of each vertex before and after the operation. |
| bMoveBoundary | [IN] Boolean Required. It determines whether boundary vertices are moved during the operation. |
| bConstraint | [IN] Boolean Required. It determines whether the quality of each face is enhanced after the operation. |
| bPreserveSharpEdge | [IN] Boolean Required. It determines whether vertices on creasing edges are not moved during the operation. |
| bPreserveVolume | [IN] Boolean Required. It determines whether the volume of the currently selected faces is preserved. |
Remarks