seasick / openscad-web-gui

Web GUI for OpenSCAD, using OpenSCAD WASM
https://seasick.github.io/openscad-web-gui/
GNU General Public License v3.0
45 stars 5 forks source link

Allow to use libraries and other files #10

Open seasick opened 10 months ago

seasick commented 10 months ago

Is your feature request related to a problem? Please describe. Currently the application has no access to libraries or other files, which could be used by OpenSCAD (e.g. fonts or vector images). This makes the application less useful then it could be.

Describe the solution you'd like I imagine some kind of file management. If you import from Thingiverse or Printables, all available files will be downloaded and shown in a file list. The user can open files from that list - especially OpenSCAD scripts. But those scripts can access the other files too - e.g. SVG files.

seasick commented 10 months ago

I've added support to use uploaded files like fonts, svg files or even zip files with libraries in them. Users can drag'n'drop files, use an URL or chose from a list of predefined libraries and and fonts to download into the users project.

Still TODO:

seasick commented 10 months ago

https://seasick.github.io/openscad-web-gui/?https://www.printables.com/model/63198-stylish-plant-labels

The model uses the Round-Anything library and the Liberation Sans font. Both of them are auto-imported when the model is loaded.