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
pointGeoPoint3endLineEndresultGeoPolylineArc3
Returns
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
pointGeoPoint3endLineEndresultGeoPolylineArc3toleranceTolerance
Returns
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.