macro_rules! cube {
([$x:expr, $y:expr, $z:expr], $center:expr) => { ... };
([$x:expr, $y:expr, $z:expr]) => { ... };
($size:expr, $center:expr) => { ... };
($size:expr) => { ... };
}Expand description
Create a cube.
#params
size: The size of a side of the cube.
center: Whether to center the cube or leave in the first octant.
[x, y, z]: The dimensions of the cube.
expansion: Scad struct literal.
#patterns
cube!(‘size: f64’);
cube!(‘size: f64’, ‘center: bool’);
cube!([‘x: f64’, ‘y: f64’, ‘z: f64’]);
cube!([‘x: f64’, ‘y: f64’, ‘z: f64’], ‘center: bool’);