generateHemisphere

fun generateHemisphere(sides: Int, segments: Int, radius: Double = 1.0, flipNormals: Boolean = false, writer: VertexWriter)(source)

Generate hemisphere centered at the origin.

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.

writer

The vertex writer function