# 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 segmentsWidth], [page:Integer segmentsHeight], [page:Integer segmentsDepth], [page:Array materials], [page:Array sides])

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.
segmentsWidth — Number of segmented faces along the width of the sides.
segmentsHeight — Number of segmented faces along the height of the sides.
segmentsDepth — Number of segmented faces along the depth of the sides.
materials — An array containing six [page:Material]s.
sides — An array containig six [page:Boolean]s defining whether the side needs to be created.

## Source

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