openscad-wasm icon indicating copy to clipboard operation
openscad-wasm copied to clipboard

Quick hack on the example for web rendering

Open iangoegebuer opened this issue 2 years ago • 2 comments

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

iangoegebuer avatar Apr 23 '22 21:04 iangoegebuer

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

iangoegebuer avatar Apr 24 '22 01:04 iangoegebuer

Just noting there's https://ochafik.com/openscad/# ...

t-paul avatar Apr 24 '22 01:04 t-paul