Skip to main content

regular_polygon

Function regular_polygon 

Source
pub fn regular_polygon<T: Number>(radius: T, sides: usize) -> Csg<T>
Expand description

Create a regular polygon with sides sides inscribed in a circle of the given radius.

The polygon lies in the XZ plane, centered at the origin. This is the BSP equivalent of rscad_core::Polygon<N> / PolygonDynamic.