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 depth
depth = 5;
// cube height
height = 20;
// cube width
width = 10;
union(){
cube([width,depth,height],center = true);
translate([0,0,10]){
cylinder(10, r = 5);
}
}