module:extras/meshes/convex

Back to documentation index.

### module:extras/meshes/convex()

The extras/meshes/convex.js module. To import all symbols in this module, either of the following can be used:

import * from "extras/meshes/convex.js";
// -- or --
import * as CustomModuleName from "extras/meshes/convex.js";

Methods

### (static) module:extras/meshes/convex.createConvexHull(points)

Generates the convex hull of a set of 3-dimensional points, that is, the smallest convex set that contains all the points given.

Parameters

Return Value

A buffer geometry. The generated convex hull. (Type: *)

### (static) module:extras/meshes/convex.planePointsToConvexHull(planepoints)

Generates a convex hull of the half-space representation of several planes. Each plane is defined by the triangle it lies on.

Parameters

Return Value

A buffer geometry. The generated convex hull. (Type: *)

### (static) module:extras/meshes/convex.randomConvexPolyhedron(avgsize, maxfaces)

Generates a mesh buffer of a convex polyhedron at random.

Parameters

Return Value

A buffer geometry. The resulting polyhedron. (Type: *)

Back to documentation index.