Creates a new ConvexHull. Prefer ConvexHull.fromFaceLoops() when you only
have each face as a list of (possibly duplicated across faces) points rather
than an already-deduplicated vertex/face-index structure.
The hull's local-space vertices.
Each face as a CCW-outward-wound (as seen from outside the hull)
list of indices into localVertices.
The center position of the volume in world space.
World-space unique edge directions (unit length), recomputed by transform().
World-space outward-facing face normals (unit length), recomputed by transform().
The type of the bounding volume.
World-space vertex positions, recomputed by transform().
Clones this ConvexHull.
Checks if this volume entirely contains another volume.
The other volume to check against.
True if entirely contained.
Returns the radius of a sphere that fully encloses the volume. Used for coarse broad-phase intersection tests.
The broad radius.
Checks if this volume intersects with a frustum.
The frustum to check against.
True if intersecting.
Checks if this volume intersects with another volume.
The other volume to check against.
True if intersecting.
Transforms the bounding volume by a matrix. Typically used to move local geometry bounds into world space.
The transformation matrix.
StaticfromBuilds a ConvexHull from faces given as loops of (possibly repeated across
faces) points -- the shape VoronoiCells' cell-clipping produces -- welding
coincident points into a shared vertex list.
Each face as an ordered, CCW-outward-wound point loop.
A new ConvexHull.
An arbitrary convex polyhedron bounding volume (face/vertex list), e.g. a Voronoi fracture shard. Unlike
BoundingBox/OBB, its shape is fully general instead of a fixed box, at the cost of a more expensive SAT test (seeCollision'sHULL-prefixed methods).