Table of Contents

Method TrySplitAt

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

TrySplitAt(GeoArc3, double, out GeoArc3[])

Cuts an arc at a normalized parameter.

public static bool TrySplitAt(GeoArc3 arc, double parameter, out GeoArc3[] pieces)

Parameters

arc GeoArc3
parameter double
pieces GeoArc3[]

Returns

bool

TrySplitAt(GeoArc3, double, out GeoArc3[], Tolerance)

Cuts an arc at a normalized parameter, within a tolerance.

public static bool TrySplitAt(GeoArc3 arc, double parameter, out GeoArc3[] pieces, Tolerance tolerance)

Parameters

arc GeoArc3

The arc to cut.

parameter double

Where to cut it, from 0 at its start to 1 at its end.

pieces GeoArc3[]

The pieces in order along the arc, or the arc whole when the method returns false.

tolerance Tolerance

The tolerance: a cut within it of either end leaves the arc whole.

Returns

bool

true when the arc was cut in two; otherwise, false.

Remarks

At a tolerance of nought a cut within a rounding of an end is a cut at the end: the arc of radius 100 sweeping 1 radian from 0.063, cut at 0.9999999999999999, is left whole, where its pieces would be the arc and a whole turn.

TrySplitAt(GeoArc3, GeoPoint3, out GeoArc3[])

Cuts an arc at the point of it nearest a point.

public static bool TrySplitAt(GeoArc3 arc, GeoPoint3 point, out GeoArc3[] pieces)

Parameters

arc GeoArc3
point GeoPoint3
pieces GeoArc3[]

Returns

bool

TrySplitAt(GeoArc3, GeoPoint3, out GeoArc3[], Tolerance)

Cuts an arc at the point of it nearest a point, within a tolerance.

public static bool TrySplitAt(GeoArc3 arc, GeoPoint3 point, out GeoArc3[] pieces, Tolerance tolerance)

Parameters

arc GeoArc3

The arc to cut.

point GeoPoint3

Where to cut it; a point off the arc cuts at the point of the arc nearest it.

pieces GeoArc3[]

The pieces in order along the arc, or the arc whole when the method returns false.

tolerance Tolerance

The tolerance.

Returns

bool

true when the arc was cut in two; otherwise, false.

Remarks

A point off the arc is answered by the place of the arc nearest it, the same way the plane answers, and a point off the plane by what stands under it: only the direction from the centre decides.

A point on the arc, within the tolerance of it, cuts it where its distance to the arc is measured to, found at no tolerance, so a point on a small arc near its centre is not carried to the start, which left the arc whole: at a tolerance of a thousandth, the half circle of radius 0.001 about the origin in the plan, from (0.001, 0, 0) through (0, 0.001, 0) to (-0.001, 0, 0), is cut by (0, 0.0007, 0) at (0, 0.001, 0). A point off the arc whose foot falls within the tolerance of the centre is read as at the centre, which has no direction, and leaves the arc whole, as it did: the half circle of radius 50 from (50, 0, 0) through (0, 50, 0) to (-50, 0, 0) is not cut by (0.0005, 0.0003, 0), 50 from it, whose direction from the centre is no surer than the tolerance.