Method Fit
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
Fit(IEnumerable<GeoPoint3>)
Gets a small box round some points, turned to fit them, using the default tolerance.
public static GeoObb3 Fit(IEnumerable<GeoPoint3> points)
Parameters
pointsIEnumerable<GeoPoint3>
Returns
Fit(IEnumerable<GeoPoint3>, Tolerance)
Gets a small box round some points, turned to fit them.
public static GeoObb3 Fit(IEnumerable<GeoPoint3> points, Tolerance tolerance)
Parameters
pointsIEnumerable<GeoPoint3>The points, such as the corners of a part.
toleranceToleranceThe tolerance deciding whether points lie in one plane.
Returns
- GeoObb3
The box standing on the face of the points' convex hull that gives the least volume, with the rectangle of least area on that face: the smallest box of all for a block, a prism, or anything with a flat face to stand on, and close to it otherwise. Points all in one plane give a box of no depth.
Exceptions
- ArgumentNullException
Thrown when the points are null.
- ArgumentException
Thrown when there are no points.