sphereMesh

fun sphereMesh(sides: Int = 16, segments: Int = 16, radius: Double = 1.0, flipNormals: Boolean = false): VertexBuffer(source)

Returns a sphere mesh

Parameters

sides

The number of steps around its axis.

segments

The number of steps from pole to pole.

radius

The radius of the sphere.

flipNormals

Create an inside-out shape if true.