Click or drag to resize

PolylineMergeColinearSegments Method

Merge co-linear consecutive segments in a polyline. This method will automatically remove any zero-length segments as well.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public int MergeColinearSegments(
	double angleTolerance,
	bool includeSeam
)

Parameters

angleTolerance
Type: SystemDouble
The angle tolerance between adjacent segments for co-linearlity test.
includeSeam
Type: SystemBoolean
If true, the seam point of a closed polyline will be moved forwards if it is colinear too.

Return Value

Type: Int32
Number of segments removed from the entire polyline.
See Also