Polyline.CollapseShortSegments Method

PolylineCollapseShortSegments Method

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)
Syntax
public int CollapseShortSegments(
	double tolerance
)
Public Function CollapseShortSegments ( 
	tolerance As Double
) As Integer

Parameters

tolerance
Type: SystemDouble
Tolerance to use during collapsing.

Return Value

Type: Int32
The number of segments that were collapsed.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.8
See Also