poly

fun poly(sides: Int, radius: Float): Mesh

Generates a polygonal mesh.

Return

The generated mesh.

Parameters

sides

The number of sides of the polygon.

radius

The radius of the polygon.