scad-rs
scad-rs copied to clipboard
A Rust implementation of the OpenSCAD virtual machine.
It'd be really nice to have a tool that shows how compatible this implementation is with the main OpenSCAD project. Ideally we'd have a large set of `*.scad` files and...
It'd be nice if we could define their own functions. From the [Functions](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/User-Defined_Functions_and_Modules#Functions) section of the manual: ```scad function func0() = 5; function func1(x=3) = 2*x+1; function func2() = [1,2,3,4];...
The goal is for people to write something like example 2 under [Object Modules](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/User-Defined_Functions_and_Modules#Object_modules): ```scad module house(roof="flat",paint=[1,0,0]) { color(paint) if(roof=="flat") { translate([0,-1,0]) cube(); } else if(roof=="pitched") { rotate([90,0,0]) linear_extrude(height=1) polygon(points=[[0,0],[0,1],[0.5,1.5],[1,1],[1,0]]);...
It'd be really nice if the interpreter supported most of the builtin modules and transforms from [the cheatsheet](https://openscad.org/cheatsheet/index.html). 2D shapes: - [ ] `circle(radius | d=diameter)` - [ ] `square(size,...