generateCylinder

fun generateCylinder(sides: Int, segments: Int, radius: Double, length: Double, flipNormals: Boolean = false, center: Boolean = false, writer: VertexWriter)(source)

Generate a cylinder along the z-axis

Parameters

sides

the number of sides of the cylinder

segments

the number of segments along the z-axis

radius

the radius of the cylinder

length

the length of the cylinder

flipNormals

generates inside-out geometry if true

center

centers the cylinder on the z-plane if true

writer

the vertex writer function