Cube options object.
By default, a cube will be constructed around the origin, with the xyz axes being normal to the cube faces.
side
number
1
center
[0, 0]
transform
lines
boolean
true
false
Cube options object.
By default, a cube will be constructed around the origin, with the xyz axes being normal to the cube faces.
sidenumber— side length (1)centerTypeParsablePoint — center point ([0, 0])transformTypeParsableTransform — transform to apply to all points of cubelinesboolean— iftruethen points representing the 12 edges of the cube will be returned. Iffalse, then points representing two triangles per face (12 triangles, 36 points) and an associated normal for each point will be returned. (false)