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)
Since: 6.3
public int MergeColinearSegments(
	double angleTolerance,
	bool includeSeam


Type: SystemDouble
The angle tolerance between adjacent segments for collinearity test.
Type: SystemBoolean
If true, the seam point of a closed polyline will be moved forwards if it is collinear too.

Return Value

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