openscad-wasm
openscad-wasm copied to clipboard
Quick hack on the example for web rendering
Still needs a bit of work to optimize and make cleaner. This allows a user of the web example to render the generated model and download it.
Additionally I added a textbox so users can edit in the browser and render as they go.
A JS linter will be needed to make this useful and not just "not work" on bad scad files
I think this is good to go as a base example of using three.js and OpenSCAD-wasm.
Let me know what you think. I tried to mimic the OpenSCAD GUI a little bit. It has room to improve. Some nice todos would be
- Open local file
- Autosave edit to the browser
- Nice toolbar buttons
- SCAD linter/syntax hilighting
- View changing toolbar
- OpenSCAD run output
Just noting there's https://ochafik.com/openscad/# ...