boxMesh

fun boxMesh(width: Double = 1.0, height: Double = 1.0, depth: Double = 1.0, widthSegments: Int = 1, heightSegments: Int = 1, depthSegments: Int = 1, flipNormals: Boolean = false): VertexBuffer(source)

Returns a Box mesh

Return

A vertex buffer containing the triangles to render the 3D shape

Parameters

width

the width of the box

height

the height of the box

depth

the depth of the box

widthSegments

the number of segments along the x-axis

heightSegments

the number of segments along the z-axis

depthSegments

the number of segments along the y-axis

flipNormals

generates inside-out geometry if true