Method TryGetPlane
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
TryGetPlane(out GeoPlane3)
Tries to get the plane every vertex lies on, using the default tolerance.
public bool TryGetPlane(out GeoPlane3 plane)
Parameters
planeGeoPlane3
Returns
TryGetPlane(out GeoPlane3, Tolerance)
Tries to get the plane every vertex lies on, within a tolerance.
public bool TryGetPlane(out GeoPlane3 plane, Tolerance tolerance)
Parameters
planeGeoPlane3The carrier plane when the method returns true.
toleranceToleranceThe tolerance; the planar threshold decides how flat is flat enough.
Returns
- bool
false when the vertices are collinear or do not share a plane.
Remarks
Collinear vertices are refused rather than given an arbitrary plane through them: a straight chain lies on infinitely many planes and there is no ground for preferring one.