sphere

fun TriangleMeshBuilder.sphere(sides: Int, segments: Int, radius: Double, flipNormals: Boolean = false)(source)

Add 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.