Table of Contents

Method TrySplitBy

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TrySplitBy(GeoPoint3, out GeoPolylineArc3[])

Cuts the chain at a point on it.

public bool TrySplitBy(GeoPoint3 point, out GeoPolylineArc3[] pieces)

Parameters

point GeoPoint3

The point to cut at; it has to be on the chain.

pieces GeoPolylineArc3[]

The pieces, in order along the chain, when the cut was made.

Returns

bool

true when the chain came apart; otherwise, false, and it is handed back whole.

TrySplitBy(GeoPoint3, out GeoPolylineArc3[], Tolerance)

Cuts the chain at a point on it, within a tolerance.

public bool TrySplitBy(GeoPoint3 point, out GeoPolylineArc3[] pieces, Tolerance tolerance)

Parameters

point GeoPoint3

The point to cut at; it has to be on the chain.

pieces GeoPolylineArc3[]

The pieces, in order along the chain, when the cut was made.

tolerance Tolerance

The tolerance.

Returns

bool

true when the chain came apart; otherwise, false, and it is handed back whole.

Remarks

The chain is cut where its distance to the point is measured to, so a point near the centre of a bend, which is on it, cuts the bend where it is nearest the point: at a tolerance of a thousandth, the chain (0.01, 0, 0), (0.001, 0, 0), (-0.001, 0, 0), (-0.01, 0, 0) with a bulge of 1 on its middle edge about Z comes apart at (0, 0.001, 0) when cut by (0, 0.0007, 0).

A point on the chain only beside a straight edge no longer than the tolerance, further than the tolerance from both its ends, cuts nothing and is refused, the chain handed back whole: at a tolerance of a thousandth, the hairpin built of the straight edges from (0, 0, 0) to (10, 0, 0), on to (10, 0.0006, 0) and back to (0, 0.0006, 0) holds (10.00098, 0.0003, 0), 0.00098 from it, and is not cut there.

TrySplitBy(GeoPlane3, out GeoPolylineArc3[])

Cuts the chain wherever it crosses a plane.

public bool TrySplitBy(GeoPlane3 cutter, out GeoPolylineArc3[] pieces)

Parameters

cutter GeoPlane3

The plane to cut at.

pieces GeoPolylineArc3[]

The pieces, in order along the chain, when any cut was made.

Returns

bool

true when the chain came apart; otherwise, false.

TrySplitBy(GeoPlane3, out GeoPolylineArc3[], Tolerance)

Cuts the chain wherever it crosses a plane, within a tolerance.

public bool TrySplitBy(GeoPlane3 cutter, out GeoPolylineArc3[] pieces, Tolerance tolerance)

Parameters

cutter GeoPlane3

The plane to cut at.

pieces GeoPolylineArc3[]

The pieces, in order along the chain, when any cut was made.

tolerance Tolerance

The tolerance.

Returns

bool

true when the chain came apart; otherwise, false.

Remarks

This is the pour break. The pieces keep their bends, so each one's length is still a length a bar schedule can use.

TrySplitBy(GeoFace3, out GeoPolylineArc3[])

Cuts the chain wherever it crosses a face.

public bool TrySplitBy(GeoFace3 cutter, out GeoPolylineArc3[] pieces)

Parameters

cutter GeoFace3

The face to cut at; only its material cuts, so a hole lets the chain through.

pieces GeoPolylineArc3[]

The pieces, in order along the chain, when any cut was made.

Returns

bool

true when the chain came apart; otherwise, false.

TrySplitBy(GeoFace3, out GeoPolylineArc3[], Tolerance)

Cuts the chain wherever it crosses a face, within a tolerance.

public bool TrySplitBy(GeoFace3 cutter, out GeoPolylineArc3[] pieces, Tolerance tolerance)

Parameters

cutter GeoFace3

The face to cut at; only its material cuts, so a hole lets the chain through.

pieces GeoPolylineArc3[]

The pieces, in order along the chain, when any cut was made.

tolerance Tolerance

The tolerance.

Returns

bool

true when the chain came apart; otherwise, false.

TrySplitBy(GeoSolid3, out GeoPolylineArc3[], out GeoPolylineArc3[])

Cuts the chain where it crosses the surface of a solid, telling what is in from what is out.

public bool TrySplitBy(GeoSolid3 cutter, out GeoPolylineArc3[] inside, out GeoPolylineArc3[] outside)

Parameters

cutter GeoSolid3

The body to cut against.

inside GeoPolylineArc3[]

The pieces within the material, in order along the chain.

outside GeoPolylineArc3[]

The pieces outside it, in order along the chain.

Returns

bool

true when the chain came apart; otherwise, false.

TrySplitBy(GeoSolid3, out GeoPolylineArc3[], out GeoPolylineArc3[], Tolerance)

Cuts the chain where it crosses the surface of a solid, telling what is in from what is out, within a tolerance.

public bool TrySplitBy(GeoSolid3 cutter, out GeoPolylineArc3[] inside, out GeoPolylineArc3[] outside, Tolerance tolerance)

Parameters

cutter GeoSolid3

The body to cut against.

inside GeoPolylineArc3[]

The pieces within the material, in order along the chain.

outside GeoPolylineArc3[]

The pieces outside it, in order along the chain.

tolerance Tolerance

The tolerance.

Returns

bool

true when the chain came apart; otherwise, false.

Remarks

This is a bar trimmed to a member: what is in the concrete and what is sticking out of it.

TrySplitBy(GeoObb3, out GeoPolylineArc3[], out GeoPolylineArc3[])

Cuts the chain where it crosses a box, telling what is in from what is out.

public bool TrySplitBy(GeoObb3 cutter, out GeoPolylineArc3[] inside, out GeoPolylineArc3[] outside)

Parameters

cutter GeoObb3
inside GeoPolylineArc3[]
outside GeoPolylineArc3[]

Returns

bool

Remarks

Which side a piece is on is settled at its middle and never at an end, because every end is on a surface by construction and a surface belongs to neither side. A box is asked as itself rather than as the body it bounds: the same answer by a shorter road.

TrySplitBy(GeoObb3, out GeoPolylineArc3[], out GeoPolylineArc3[], Tolerance)

Cuts the chain where it crosses a box, telling what is in from what is out, within a tolerance.

public bool TrySplitBy(GeoObb3 cutter, out GeoPolylineArc3[] inside, out GeoPolylineArc3[] outside, Tolerance tolerance)

Parameters

cutter GeoObb3
inside GeoPolylineArc3[]
outside GeoPolylineArc3[]
tolerance Tolerance

Returns

bool

TrySplitBy(GeoAabb3, out GeoPolylineArc3[], out GeoPolylineArc3[])

Cuts the chain where it crosses a square box, telling what is in from what is out.

public bool TrySplitBy(GeoAabb3 cutter, out GeoPolylineArc3[] inside, out GeoPolylineArc3[] outside)

Parameters

cutter GeoAabb3
inside GeoPolylineArc3[]
outside GeoPolylineArc3[]

Returns

bool

Remarks

Which side a piece is on is settled at its middle and never at an end, because every end is on a surface by construction and a surface belongs to neither side. A box is asked as itself rather than as the body it bounds: the same answer by a shorter road.

TrySplitBy(GeoAabb3, out GeoPolylineArc3[], out GeoPolylineArc3[], Tolerance)

Cuts the chain where it crosses a square box, telling what is in from what is out, within a tolerance.

public bool TrySplitBy(GeoAabb3 cutter, out GeoPolylineArc3[] inside, out GeoPolylineArc3[] outside, Tolerance tolerance)

Parameters

cutter GeoAabb3
inside GeoPolylineArc3[]
outside GeoPolylineArc3[]
tolerance Tolerance

Returns

bool

TrySplitBy(GeoSolid3[], out GeoPolylineArc3[], out GeoPolylineArc3[])

Cuts the chain where it crosses several bodies, telling what is in from what is out.

public bool TrySplitBy(GeoSolid3[] cutters, out GeoPolylineArc3[] inside, out GeoPolylineArc3[] outside)

Parameters

cutters GeoSolid3[]
inside GeoPolylineArc3[]
outside GeoPolylineArc3[]

Returns

bool

Remarks

Which side a piece is on is settled at its middle and never at an end, because every end is on a surface by construction and a surface belongs to neither side. A piece is inside when it is inside any one of them, so overlapping cutters behave as the one region they cover, and a gap in the array is passed over.

TrySplitBy(GeoSolid3[], out GeoPolylineArc3[], out GeoPolylineArc3[], Tolerance)

Cuts the chain where it crosses several bodies, telling what is in from what is out, within a tolerance.

public bool TrySplitBy(GeoSolid3[] cutters, out GeoPolylineArc3[] inside, out GeoPolylineArc3[] outside, Tolerance tolerance)

Parameters

cutters GeoSolid3[]
inside GeoPolylineArc3[]
outside GeoPolylineArc3[]
tolerance Tolerance

Returns

bool

TrySplitBy(GeoObb3[], out GeoPolylineArc3[], out GeoPolylineArc3[])

Cuts the chain where it crosses several boxes, telling what is in from what is out.

public bool TrySplitBy(GeoObb3[] cutters, out GeoPolylineArc3[] inside, out GeoPolylineArc3[] outside)

Parameters

cutters GeoObb3[]
inside GeoPolylineArc3[]
outside GeoPolylineArc3[]

Returns

bool

Remarks

Which side a piece is on is settled at its middle and never at an end, because every end is on a surface by construction and a surface belongs to neither side. A piece is inside when it is inside any one of them, so overlapping cutters behave as the one region they cover, and a gap in the array is passed over.

TrySplitBy(GeoObb3[], out GeoPolylineArc3[], out GeoPolylineArc3[], Tolerance)

Cuts the chain where it crosses several boxes, telling what is in from what is out, within a tolerance.

public bool TrySplitBy(GeoObb3[] cutters, out GeoPolylineArc3[] inside, out GeoPolylineArc3[] outside, Tolerance tolerance)

Parameters

cutters GeoObb3[]
inside GeoPolylineArc3[]
outside GeoPolylineArc3[]
tolerance Tolerance

Returns

bool

TrySplitBy(GeoAabb3[], out GeoPolylineArc3[], out GeoPolylineArc3[])

Cuts the chain where it crosses several square boxes, telling what is in from what is out.

public bool TrySplitBy(GeoAabb3[] cutters, out GeoPolylineArc3[] inside, out GeoPolylineArc3[] outside)

Parameters

cutters GeoAabb3[]
inside GeoPolylineArc3[]
outside GeoPolylineArc3[]

Returns

bool

Remarks

Which side a piece is on is settled at its middle and never at an end, because every end is on a surface by construction and a surface belongs to neither side. A piece is inside when it is inside any one of them, so overlapping cutters behave as the one region they cover, and a gap in the array is passed over.

TrySplitBy(GeoAabb3[], out GeoPolylineArc3[], out GeoPolylineArc3[], Tolerance)

Cuts the chain where it crosses several square boxes, telling what is in from what is out, within a tolerance.

public bool TrySplitBy(GeoAabb3[] cutters, out GeoPolylineArc3[] inside, out GeoPolylineArc3[] outside, Tolerance tolerance)

Parameters

cutters GeoAabb3[]
inside GeoPolylineArc3[]
outside GeoPolylineArc3[]
tolerance Tolerance

Returns

bool