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
firstGeoPolyline2secondGeoPolyline2
Returns
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
firstGeoPolyline2The earlier piece along the subject.
secondGeoPolyline2The piece that may continue it.
toleranceToleranceThe 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
firstorsecondis null.