RhinoCommon API
MeshSmooth Method (IEnumerableInt32, Double, Boolean, Boolean, Boolean, Boolean, SmoothingCoordinateSystem, Plane) |
Smooths part of a mesh by averaging the positions of mesh vertices in a specified region.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)

public bool Smooth( IEnumerable<int> vertexIndices, double smoothFactor, bool bXSmooth, bool bYSmooth, bool bZSmooth, bool bFixBoundaries, SmoothingCoordinateSystem coordinateSystem, Plane plane )
Public Function Smooth ( vertexIndices As IEnumerable(Of Integer), smoothFactor As Double, bXSmooth As Boolean, bYSmooth As Boolean, bZSmooth As Boolean, bFixBoundaries As Boolean, coordinateSystem As SmoothingCoordinateSystem, plane As Plane ) As Boolean
Parameters
- vertexIndices
- Type: System.Collections.GenericIEnumerableInt32
The mesh vertex indices that specify the part of the mesh to smooth. - smoothFactor
- Type: SystemDouble
The smoothing factor, which controls how much vertices move towards the average of the neighboring vertices. - bXSmooth
- Type: SystemBoolean
When true vertices move in X axis direction. - bYSmooth
- Type: SystemBoolean
When true vertices move in Y axis direction. - bZSmooth
- Type: SystemBoolean
When true vertices move in Z axis direction. - bFixBoundaries
- Type: SystemBoolean
When true vertices along naked edges will not be modified. - coordinateSystem
- Type: Rhino.GeometrySmoothingCoordinateSystem
The coordinates to determine the direction of the smoothing. - plane
- Type: Rhino.GeometryPlane
If SmoothingCoordinateSystem.CPlane specified, then the construction plane.
Return Value
Type: BooleanTrue if successful, false otherwise.

Rhino for Windows
Supported in: 6.14