CubeGeometry
Loading CubeGeometry…
An equal-sided box centered at the origin. size is a positive total side length (default 1).
import {CubeGeometry} from '@math.gl/geometry/primitives';
const geometry = new CubeGeometry({size: 1});
All primitives also accept id and additional attributes. Generated meshes expose
POSITION, NORMAL and TEXCOORD_0 attributes, triangle-list topology, and typed indices.
See Geometry for the mesh container API.