Method TryOf
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
TryOf(IEnumerable<GeoPoint3>, out GeoSolid3)
Tries to get the convex hull of some points, using the default tolerance.
public static bool TryOf(IEnumerable<GeoPoint3> points, out GeoSolid3 hull)
Parameters
pointsIEnumerable<GeoPoint3>hullGeoSolid3
Returns
TryOf(IEnumerable<GeoPoint3>, out GeoSolid3, Tolerance)
Tries to get the convex hull of some points, within a tolerance.
public static bool TryOf(IEnumerable<GeoPoint3> points, out GeoSolid3 hull, Tolerance tolerance)
Parameters
pointsIEnumerable<GeoPoint3>The points.
hullGeoSolid3The hull, closed and wound outwards; null when the method returns false.
toleranceToleranceThe tolerance deciding whether a point lies on the hull.
Returns
- bool
false when the points span no volume: fewer than four, or all within the point tolerance of a line or of the plane the hull starts from. A plate no thicker than twice the tolerance lies within it of its middle plane, and whether the start finds that depends on the points.
Exceptions
- ArgumentNullException
Thrown when the points are null.