Method TrySplitBy
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
TrySplitBy(GeoPoint3, out GeoPolylineArc3[])
Cuts the loop 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 loop.
piecesGeoPolylineArc3[]The open chains the loop came apart into.
Returns
- bool
true when the cut was made; otherwise, false, and the loop comes back opened at its start.
TrySplitBy(GeoPoint3, out GeoPolylineArc3[], Tolerance)
Cuts the loop 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 loop.
piecesGeoPolylineArc3[]The open chains the loop came apart into.
toleranceToleranceThe tolerance.
Returns
- bool
true when the cut was made; otherwise, false.
Remarks
The loop 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 loop (0.01, -0.01, 0), (0.001, 0, 0), (-0.001, 0, 0), (-0.01, -0.01, 0) with a bulge of 1 on its second edge about Z is opened at (0, 0.001, 0) when cut by (0, 0.0007, 0).
A point on the loop only beside a straight side no longer than the tolerance, further than the tolerance from both its corners, cuts nothing and is refused, the loop handed back opened at its start: at a tolerance of a thousandth, the loop (0, 0, 0), (10, 0, 0), (10, 0.0006, 0), (0, 10, 0), built within a ten-thousandth, holds (10.00098, 0.0003, 0), 0.00098 from it, and is not cut there.
TrySplitBy(GeoPlane3, out GeoPolylineArc3[])
Cuts the loop wherever it crosses a plane.
public bool TrySplitBy(GeoPlane3 cutter, out GeoPolylineArc3[] pieces)
Parameters
cutterGeoPlane3The plane to cut at.
piecesGeoPolylineArc3[]The open chains the loop came apart into.
Returns
- bool
true when any cut was made; otherwise, false.
TrySplitBy(GeoPlane3, out GeoPolylineArc3[], Tolerance)
Cuts the loop 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 open chains the loop came apart into.
toleranceToleranceThe tolerance.
Returns
- bool
true when any cut was made; otherwise, false.
Remarks
A plane through a stirrup cuts it twice, so the usual answer is two chains.
TrySplitBy(GeoFace3, out GeoPolylineArc3[])
Cuts the loop wherever it crosses a face.
public bool TrySplitBy(GeoFace3 cutter, out GeoPolylineArc3[] pieces)
Parameters
cutterGeoFace3The face to cut at; only its material cuts.
piecesGeoPolylineArc3[]The open chains the loop came apart into.
Returns
- bool
true when any cut was made; otherwise, false.
TrySplitBy(GeoFace3, out GeoPolylineArc3[], Tolerance)
Cuts the loop 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.
piecesGeoPolylineArc3[]The open chains the loop came apart into.
toleranceToleranceThe tolerance.
Returns
- bool
true when any cut was made; otherwise, false.
TrySplitBy(GeoSolid3, out GeoPolylineArc3[], out GeoPolylineArc3[])
Cuts the loop 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 chains within the material.
outsideGeoPolylineArc3[]The chains outside it.
Returns
- bool
true when any cut was made; otherwise, false.
TrySplitBy(GeoSolid3, out GeoPolylineArc3[], out GeoPolylineArc3[], Tolerance)
Cuts the loop 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 chains within the material.
outsideGeoPolylineArc3[]The chains outside it.
toleranceToleranceThe tolerance.
Returns
- bool
true when any cut was made; otherwise, false.
Remarks
This is a stirrup trimmed to a member: what is in the concrete and what is sticking out of it.
TrySplitBy(GeoObb3, out GeoPolylineArc3[], out GeoPolylineArc3[])
Cuts the loop 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 loop 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 loop 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 loop 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 loop 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 loop 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 loop 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 loop 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 loop 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 loop 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