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.

Exceptions

ArgumentNullException

Thrown when the points are null.