Table of Contents

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

points IEnumerable<GeoPoint3>
hull GeoSolid3

Returns

bool

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

points IEnumerable<GeoPoint3>

The points.

hull GeoSolid3

The hull, closed and wound outwards; null when the method returns false.

tolerance Tolerance

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