polygon

Macro polygon 

Source
macro_rules! polygon {
    ($points:expr, convexity=$convexity:expr) => { ... };
    ($points:expr, $paths:expr, $convexity:expr) => { ... };
    ($points:expr, $paths:expr) => { ... };
    ($points:expr) => { ... };
}
Expand description

Creates a polygon.

#params

points: The points that make up the polygon.

paths: The order of the points.

convexity: Number of inward curves, only for the preview.

expansion: The Scad struct literal.

#patterns

polygon!(‘points: Pt2s’);

polygon!(‘points: Pt2s’, ‘paths: Paths’);

polygon!(‘points: Pt2s’, ‘paths: Paths’, ‘convexity: u64’);

polygon!(‘points: Pt2s’, convexity=‘convexity: u64’);