Chevron Down
Table of Contents
Chevron DownGetting Started
Chevron DownAPI Reference

Cube

Create a cube geometry.

The generated geometry will have indices and POSITION, NORMAL and TEXCOORD_0 attributes.

Usage

import {Cube} from '@luma.gl/core';
const cube = new Cube();

Inheritance

CubeGeometry extends Geometry

Methods

constructor(props : Object)

Creates a new Cube.