Table of Contents

Method Polylines

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

Polylines(IEnumerable<GeoPolyline3>)

Concatenates polylines that meet end to start into a single chain, using the default tolerance.

public static GeoPolyline3 Polylines(IEnumerable<GeoPolyline3> polylines)

Parameters

polylines IEnumerable<GeoPolyline3>

Returns

GeoPolyline3

Polylines(IEnumerable<GeoPolyline3>, Tolerance)

Concatenates polylines that meet end to start into a single chain, within a tolerance.

public static GeoPolyline3 Polylines(IEnumerable<GeoPolyline3> polylines, Tolerance tolerance)

Parameters

polylines IEnumerable<GeoPolyline3>

The chains, in order.

tolerance Tolerance

The tolerance deciding contact.

Returns

GeoPolyline3

One chain covering all of them.

Remarks

This is the strict form: it will not reorder or reverse anything, and a gap is an error rather than something to bridge. Use Join when the pieces arrive in no particular order.

Exceptions

ArgumentException

Thrown when the sequence is empty, or when a chain does not start where the previous one ended.