planeMesh

fun planeMesh(center: Vector3, right: Vector3, forward: Vector3, up: Vector3 = forward.cross(right).normalized, width: Double = 1.0, height: Double = 1.0, widthSegments: Int = 1, heightSegments: Int = 1): VertexBuffer(source)

Generate a finite plane centered at center, using the right, forward and up vectors for its orientation. width and height specify the dimensions of the plane. widthSegments and heightSegments control the plane's number of segments.

Return

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