flowscad 0.1.2

2D graphic and 3D object design with a Rustic functional approach. SVG and OpenSCAD output.
Documentation
// extern crate itertools;

// use std::fmt;
// use itertools::Itertools;
// use std::ops::Add;

use flowscad::*;
use anyhow::Result;

fn main() -> Result<()> {
    let e = D2::circle_d(4.);
    let f = D2::circle_d(10.)
        .add(e)
        .translate( (4,5) )
        .scale_xy( (3,2) )
        .add(D2::square(9))
        .scale(4)
        .minkowski(D2::Rectangle(v2(0.5,1.5)))
        .color(ColorEnum::Red)
        ;
    println!("{}", &f);
    Ok(())
}