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.
Exceptions
- ArgumentNullException
Thrown when the points are null.