revolve

fun TriangleMeshBuilder.revolve(sides: Int, length: Double, envelope: List<Vector2>)(source)

Generate a shape by rotating an envelope around a vertical axis.

Parameters

sides

the angular resolution of the cap

length

the length of the shape. A multiplier for the y component of the envelope

envelope

a list of points defining the profile of the shape. The default envelope is a vertical line which produces a hollow cylinder.