Macro scad_generator::scad [] [src]

macro_rules! scad {
    ($parent:expr) => { ... };
    ($parent:expr;{$($child:expr),*$(),+}) => { ... };
    ($parent:expr;$($child:expr),*) => { ... };
}

Creates an scad object with optional children

Examples



     //No children
     let cube = scad!(Cube(vec3(1., 1., 1.)));

     //One parent with several children
     scad!(Difference;
     {
         cube,
         scad!(Cube(vec3(2., 1., 1.))),
     });Run