SolidRS
Rust library to generate openScad models. Inspired by SolidPython.
Currently only very few commands are implemented but I plan on adding them as I need them.
Example
use *;
Variables
SolidRS is able to generate variables in the resulting openSCAD script. These variables can then be configured in the openSCAD Editor.
this rust file:
use *;
produces this scad file:
// cube width
width = 20;
// cube height
height = 20;
cylinder_height = width / 2;
union(){
cube([width,width / 2,height],center = true);
translate([0,0,height / 2]){
cylinder(cylinder_height, r = 5);
}
}