M_Rhino_Geometry_Polyline_CollapseShortSegments - mcneel/rhinocommon-api-docs GitHub Wiki
Collapses all segments until none are shorter than tolerance. This function is significantly slower than DeleteShortSegments, since it recursively operates on the shortest segment. When a segment is collapsed the end-points are placed in the center of the segment.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0
C#
public int CollapseShortSegments(
double tolerance
)
VB
Public Function CollapseShortSegments (
tolerance As Double
) As Integer
- tolerance
- Type: System.Double
Tolerance to use during collapsing.
Type: Int32
The number of segments that were collapsed.
Supported in: 6.0.16224.21491, 5D58w
Polyline Class
Rhino.Geometry Namespace
Polyline.DeleteShortSegments(Double)