macro_rules! circle {
(d=$dia:expr) => { ... };
(d=$dia:expr, fn=$fn:expr) => { ... };
(d=$dia:expr, fa=$fa:expr) => { ... };
(d=$dia:expr, fs=$fs:expr) => { ... };
(d=$dia:expr, fa=$fa:expr, fs=$fs:expr) => { ... };
(r=$r:expr) => { ... };
(r=$r:expr, fn=$fn:expr) => { ... };
(r=$r:expr, fa=$fa:expr) => { ... };
(r=$r:expr, fs=$fs:expr) => { ... };
(r=$r:expr, fa=$fa:expr, fs=$fs:expr) => { ... };
($r:expr, fa=$fa:expr) => { ... };
($r:expr, fs=$fs:expr) => { ... };
($r:expr, fa=$fa:expr, fs=$fs:expr) => { ... };
($r:expr) => { ... };
($r:expr, fn=$fn:expr) => { ... };
}
Expand description
Creates a circle.
#params
diameter: The diameter of the circle.
radius: The radius of the circle.
fa: The minimum angle between segments.
fs: The minimum length of a segment.
fn: The number of segments in the circle.
expansion: Scad struct literal.
#patterns
circle!(‘radius: f64’);
circle!(‘radius: f64’, fn=‘fn: u64’);
circle!(‘radius: f64’, fa=‘fa: f64’);
circle!(‘radius: f64’, fs=‘fs: f64’);
circle!(‘radius: f64’, fa=‘fa: f64’, fs=‘fs: f64’);
circle!(d=‘diameter: f64’);
circle!(d=‘diameter: f64’, fn=‘fn: u64’);
circle!(d=‘diameter: f64’, fa=‘fa: f64’);
circle!(d=‘diameter: f64’, fs=‘fs: f64’);
circle!(d=‘diameter: f64’, fa=‘fa: f64’, fs=‘fs: f64’);
circle!(r=‘radius: f64’);
circle!(r=‘radius: f64’, fn=‘fn: u64’);
circle!(r=‘radius: f64’, fa=‘fa: f64’);
circle!(r=‘radius: f64’, fs=‘fs: f64’);
circle!(r=‘radius: f64’, fa=‘fa: f64’, fs=‘fs: f64’);