SurfaceSmooth Method (Double, Boolean, Boolean, Boolean, Boolean, SmoothingCoordinateSystem) |
Smooths a surface by averaging the positions of control points in a specified region.
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 6.0
Syntax public Surface Smooth(
double smoothFactor,
bool bXSmooth,
bool bYSmooth,
bool bZSmooth,
bool bFixBoundaries,
SmoothingCoordinateSystem coordinateSystem
)
Public Function Smooth (
smoothFactor As Double,
bXSmooth As Boolean,
bYSmooth As Boolean,
bZSmooth As Boolean,
bFixBoundaries As Boolean,
coordinateSystem As SmoothingCoordinateSystem
) As Surface
Parameters
- smoothFactor
- Type: SystemDouble
The smoothing factor, which controls how much control points move towards the average of the neighboring control points. - bXSmooth
- Type: SystemBoolean
When true control points move in X axis direction. - bYSmooth
- Type: SystemBoolean
When true control points move in Y axis direction. - bZSmooth
- Type: SystemBoolean
When true control points move in Z axis direction. - bFixBoundaries
- Type: SystemBoolean
When true the surface edges don't move. - coordinateSystem
- Type: Rhino.GeometrySmoothingCoordinateSystem
The coordinates to determine the direction of the smoothing.
Return Value
Type:
SurfaceThe smoothed surface if successful, null otherwise.
See Also