Table of Contents

Class Merge2

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

Provides utility methods to merge consecutive collinear line segments and adjacent polylines.

public static class Merge2
Inheritance
Merge2
Inherited Members

Methods

ConsecutiveLines(IEnumerable<GeoLine2>)

Rejoins the segments of a classified run that end where the next one begins, using the default tolerance.

ConsecutiveLines(IEnumerable<GeoLine2>, Tolerance)

Rejoins the segments of a classified run that end where the next one begins.

ConsecutivePolylines(IEnumerable<GeoPolyline2>)

Rejoins the pieces of a classified run that end where the next one begins, using the default tolerance.

ConsecutivePolylines(IEnumerable<GeoPolyline2>, Tolerance)

Rejoins the pieces of a classified run that end where the next one begins.

Join(IEnumerable<GeoLine2>)

Joins a collection of segments into polylines by matching endpoints, using the default tolerance.

Join(IEnumerable<GeoLine2>, Tolerance)

Joins a collection of line segments into polylines by matching endpoints, similar to AutoCAD's JOIN command. Non-collinear connected segments form polylines, and collinear segments are simplified by removing redundant junctions.

Polylines(GeoPolyline2, GeoPolyline2)

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

Polylines(GeoPolyline2, GeoPolyline2, Tolerance)

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