Table of Contents

Method TryTrimTo

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TryTrimTo(GeoPoint3, LineEnd, out GeoPolylineArc3)

Shortens the chain at one end back to a point on it.

public bool TryTrimTo(GeoPoint3 point, LineEnd end, out GeoPolylineArc3 result)

Parameters

point GeoPoint3
end LineEnd
result GeoPolylineArc3

Returns

bool

TryTrimTo(GeoPoint3, LineEnd, out GeoPolylineArc3, Tolerance)

Shortens the chain at one end back to a point on it, within a tolerance.

public bool TryTrimTo(GeoPoint3 point, LineEnd end, out GeoPolylineArc3 result, Tolerance tolerance)

Parameters

point GeoPoint3
end LineEnd
result GeoPolylineArc3
tolerance Tolerance

Returns

bool

Remarks

The chain is cut where TrySplitBy(GeoPoint3, out GeoPolylineArc3[], Tolerance) cuts it, so a point near the centre of a bend trims it to where the bend is nearest the point.