Table of Contents

Method ConsecutivePolylines

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

ConsecutivePolylines(IEnumerable<GeoPolyline3>)

Merges runs of consecutive polylines that meet end to start, using the default tolerance.

public static GeoPolyline3[] ConsecutivePolylines(IEnumerable<GeoPolyline3> polylines)

Parameters

polylines IEnumerable<GeoPolyline3>

Returns

GeoPolyline3[]

ConsecutivePolylines(IEnumerable<GeoPolyline3>, Tolerance)

Merges runs of consecutive polylines that meet end to start, within a tolerance.

public static GeoPolyline3[] ConsecutivePolylines(IEnumerable<GeoPolyline3> polylines, Tolerance tolerance)

Parameters

polylines IEnumerable<GeoPolyline3>
tolerance Tolerance

Returns

GeoPolyline3[]

One chain per unbroken run. A gap in the sequence starts a new chain rather than raising an error, which is the difference between this and Polylines(IEnumerable<GeoPolyline3>, Tolerance).