Merge co-linear consecutive segments in a polyline.
This method will automatically remove any zero-length segments as well.
RhinoCommon (in RhinoCommon.dll)
public int MergeColinearSegments(
Public Function MergeColinearSegments (
angleTolerance As Double,
includeSeam As Boolean
) As Integer
- 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.
Number of segments removed from the entire polyline.