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
pointGeoPoint3The point to cut at; it has to be on the chain.
piecesGeoPolylineArc3[]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
pointGeoPoint3The point to cut at; it has to be on the chain.
piecesGeoPolylineArc3[]The pieces, in order along the chain, when the cut was made.
toleranceToleranceThe 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
cutterGeoPlane3The plane to cut at.
piecesGeoPolylineArc3[]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
cutterGeoPlane3The plane to cut at.
piecesGeoPolylineArc3[]The pieces, in order along the chain, when any cut was made.
toleranceToleranceThe 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
cutterGeoFace3The face to cut at; only its material cuts, so a hole lets the chain through.
piecesGeoPolylineArc3[]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
cutterGeoFace3The face to cut at; only its material cuts, so a hole lets the chain through.
piecesGeoPolylineArc3[]The pieces, in order along the chain, when any cut was made.
toleranceToleranceThe 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
cutterGeoSolid3The body to cut against.
insideGeoPolylineArc3[]The pieces within the material, in order along the chain.
outsideGeoPolylineArc3[]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
cutterGeoSolid3The body to cut against.
insideGeoPolylineArc3[]The pieces within the material, in order along the chain.
outsideGeoPolylineArc3[]The pieces outside it, in order along the chain.
toleranceToleranceThe 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
cutterGeoObb3insideGeoPolylineArc3[]outsideGeoPolylineArc3[]
Returns
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
cutterGeoObb3insideGeoPolylineArc3[]outsideGeoPolylineArc3[]toleranceTolerance
Returns
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
cutterGeoAabb3insideGeoPolylineArc3[]outsideGeoPolylineArc3[]
Returns
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
cutterGeoAabb3insideGeoPolylineArc3[]outsideGeoPolylineArc3[]toleranceTolerance
Returns
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
cuttersGeoSolid3[]insideGeoPolylineArc3[]outsideGeoPolylineArc3[]
Returns
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
cuttersGeoSolid3[]insideGeoPolylineArc3[]outsideGeoPolylineArc3[]toleranceTolerance
Returns
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
cuttersGeoObb3[]insideGeoPolylineArc3[]outsideGeoPolylineArc3[]
Returns
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
cuttersGeoObb3[]insideGeoPolylineArc3[]outsideGeoPolylineArc3[]toleranceTolerance
Returns
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
cuttersGeoAabb3[]insideGeoPolylineArc3[]outsideGeoPolylineArc3[]
Returns
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
cuttersGeoAabb3[]insideGeoPolylineArc3[]outsideGeoPolylineArc3[]toleranceTolerance