CurveSmooth Method (Double, Boolean, Boolean, Boolean, Boolean, SmoothingCoordinateSystem, Plane) |
Smooths a curve by averaging the positions of control points in a specified region.
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 6.0
Syntax public Curve Smooth(
double smoothFactor,
bool bXSmooth,
bool bYSmooth,
bool bZSmooth,
bool bFixBoundaries,
SmoothingCoordinateSystem coordinateSystem,
Plane plane
)
Public Function Smooth (
smoothFactor As Double,
bXSmooth As Boolean,
bYSmooth As Boolean,
bZSmooth As Boolean,
bFixBoundaries As Boolean,
coordinateSystem As SmoothingCoordinateSystem,
plane As Plane
) As Curve
Parameters
- smoothFactor
- Type: SystemDouble
The smoothing factor, which controls how much control
points move towards the average of the neighboring control points.
Note that this smoothFactor is equivalent to twice the smooth factor used in
the Smooth command: on a polyline, Rhino _Smooth with a factor of 0.2 is the
same as Smooth(Double) with a factor of 0.4.
- 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 curve ends don't move. - 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:
CurveThe smoothed curve if successful, null otherwise.
See Also