Table of Contents

Method Polylines

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

Polylines(GeoPolyline2, GeoPolyline2)

Joins two pieces into one if the first ends where the second begins, using the default tolerance.

public static GeoPolyline2 Polylines(GeoPolyline2 first, GeoPolyline2 second)

Parameters

first GeoPolyline2
second GeoPolyline2

Returns

GeoPolyline2

Polylines(GeoPolyline2, GeoPolyline2, Tolerance)

Joins two pieces into one if the first ends where the second begins.

public static GeoPolyline2 Polylines(GeoPolyline2 first, GeoPolyline2 second, Tolerance tolerance)

Parameters

first GeoPolyline2

The earlier piece along the subject.

second GeoPolyline2

The piece that may continue it.

tolerance Tolerance

The tolerance.

Returns

GeoPolyline2

The joined piece, or null when the two do not meet.

Remarks

Null is the answer rather than an exception because not meeting is ordinary: the pieces on one side of a cutter are usually several separate stretches, and the caller walks the run using exactly this to tell one stretch from the next.

Exceptions

ArgumentNullException

Thrown when first or second is null.