generateBox
fun generateBox(width: Double = 1.0, height: Double = 1.0, depth: Double = 1.0, widthSegments: Int = 1, heightSegments: Int = 1, depthSegments: Int = 1, flipNormals: Boolean = false, writer: VertexWriter)(source)
Generate a box
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
writer
the vertex writer function