Table of Contents

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

plane GeoPlane3

Returns

bool

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

plane GeoPlane3

The plane, when there is one.

tolerance Tolerance

The 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.