generateTaperedCylinder

fun generateTaperedCylinder(sides: Int, segments: Int, radiusStart: Double, radiusEnd: Double, length: Double, flipNormals: Boolean = false, center: Boolean = false, writer: VertexWriter)(source)

Generate a tapered cylinder along the z-axis

Parameters

sides

the number of sides of the tapered cylinder

segments

the number of segments along the z-axis

radiusStart

the start radius of the tapered cylinder

radiusEnd

the end radius of the tapered cylinder

length

the length of the tapered cylinder

flipNormals

generates inside-out geometry if true

center

centers the cylinder on the z-plane if true

writer

the vertex writer function