Table of Contents

Method TrySplitAtDistance

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TrySplitAtDistance(double, out GeoPolyline3[])

Splits this polyline at an arc length from its start, using the default tolerance.

public bool TrySplitAtDistance(double distance, out GeoPolyline3[] pieces)

Parameters

distance double
pieces GeoPolyline3[]

Returns

bool

TrySplitAtDistance(double, out GeoPolyline3[], Tolerance)

Splits this polyline at an arc length from its start, within a tolerance.

public bool TrySplitAtDistance(double distance, out GeoPolyline3[] pieces, Tolerance tolerance)

Parameters

distance double
pieces GeoPolyline3[]
tolerance Tolerance

Returns

bool

TrySplitAtDistance(double, out GeoPolyline3, out GeoPolyline3)

Splits the chain at an arc length from its start into the piece before and the piece after, using the default tolerance.

public bool TrySplitAtDistance(double distance, out GeoPolyline3 first, out GeoPolyline3 second)

Parameters

distance double
first GeoPolyline3
second GeoPolyline3

Returns

bool

TrySplitAtDistance(double, out GeoPolyline3, out GeoPolyline3, Tolerance)

Splits the chain at an arc length from its start into the piece before and the piece after, within a tolerance.

public bool TrySplitAtDistance(double distance, out GeoPolyline3 first, out GeoPolyline3 second, Tolerance tolerance)

Parameters

distance double

How far along the chain to cut.

first GeoPolyline3

The piece holding the start; null when the method returns false.

second GeoPolyline3

The piece holding the end; null when the method returns false.

tolerance Tolerance

The tolerance.

Returns

bool

true when the chain was cut in two; false when the distance falls at or beyond an end.