hemiSphere

fun hemiSphere(radius: Float, rings: Int, slices: Int = 16): Mesh

Generates a hemisphere mesh.

Return

The generated mesh.

Parameters

radius

The radius of the hemisphere.

rings

The number of rings of the hemisphere. Increasing the number of rings increases the number of vertical subdivisions, which improves the hemisphere's roundness.

slices

The number of slices of the hemisphere. Increasing the number of slices increases the number of horizontal subdivisions, which improves the hemisphere's roundness.