CubeGeometry

CubeGeometry is the quadrilateral primitive geometry class. It is typically used for creating a cube or irregular quadrilateral of the dimensions provided within the (optional) 'width', 'height', & 'depth' constructor arguments.

Constructor

[name]([page:Float width], [page:Float height], [page:Float depth], [page:Integer widthSegments], [page:Integer heightSegments], [page:Integer depthSegments])

width — Width of the sides on the X axis.
height — Height of the sides on the Y axis.
depth — Depth of the sides on the Z axis.
widthSegments — Number of segmented faces along the width of the sides.
heightSegments — Number of segmented faces along the height of the sides.
depthSegments — Number of segmented faces along the depth of the sides.

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]