Compute the 3D convex hull of a point cloud.
Returns the tightest convex solid enclosing all given points. At least 4 non-coplanar points are required to form a solid.
Array of 3D coordinates.
Result<Solid> — the convex hull solid, or an error.
Result<Solid>
const solid = unwrap(convexHull([ [0, 0, 0], [10, 0, 0], [0, 10, 0], [0, 0, 10],])); Copy
const solid = unwrap(convexHull([ [0, 0, 0], [10, 0, 0], [0, 10, 0], [0, 0, 10],]));
Compute the 3D convex hull of a point cloud.
Returns the tightest convex solid enclosing all given points. At least 4 non-coplanar points are required to form a solid.