Method TryGetPlane
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
TryGetPlane(out GeoPlane3)
Gets the plane the whole chain lies in, when it lies in one.
public bool TryGetPlane(out GeoPlane3 plane)
Parameters
planeGeoPlane3
Returns
TryGetPlane(out GeoPlane3, Tolerance)
Gets the plane the whole chain lies in, when it lies in one, within a tolerance.
public bool TryGetPlane(out GeoPlane3 plane, Tolerance tolerance)
Parameters
planeGeoPlane3The plane, when there is one.
toleranceToleranceThe tolerance; the planar threshold decides how flat is flat enough.
Returns
- bool
true if one plane holds every vertex and every arc; otherwise, false.
Remarks
The vertices alone are not enough to settle it: two straight runs and the bends between them can all share a plane while an arc bulges out of it, so every arc is asked whether its own plane is the same one.