ConvexHull

data class ConvexHull(val points: List<DVec3>, val margin: Double = DEFAULT_MARGIN) : Geometry

A convex shape defined by a set of points, which will be used to compute a convex hull (smallest convex shape containing the given points) when baked into a Shape.

If you are taking input from a file or other unverified source, this is the best option to use to ensure the inputs are actually convex.

Parameters

points

The points on the hull.

margin

The convex margin of the shape. See ConvexGeometry.

Constructors

Link copied to clipboard
constructor(points: List<DVec3>, margin: Double = DEFAULT_MARGIN)

Properties

Link copied to clipboard
Link copied to clipboard
val points: List<DVec3>