cylinder

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

Generate a cylinder

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

center the cylinder on the z-plane