Default JSCAD script (index.js) for self-hosted website
-
Hi everybody, openjscad is really interesting! I've really enjoyed going through your docs and examples. I have an existing application I'm considering integrating openjscad into and I was wondering if there is a specific place to put a index.js file such that it is loaded by "default" when the page loads? I've seen the uri info. Our specific application will involve loading several stl files, performing manual alignments, and exporting the merged stl file. If there is another recommended way to accomplish this, please let me know. Thanks in advance!
-
@z3dev that is exactly type of projects I want more jscad users to be able to do. It will likely be able to benefit from some of the resopnsiveness improvments I am making.
-
@tjw25425 here's one of the most advanced websites. And very cool too.
-
@tjw25425 Welcome
There are numerous websites using JSCAD, using the modeling library to create models, and then rendering. At this point, I haven't seen a website that interacts with the model via touch/mouse. Most websites use a custom built script to control the rendering and modeling.
-
@tjw25425 if you would go in direction uding threejs this could help with faster preview
https://github.com/gkjohnson/three-bvh-csgand then for export use jscad to perform the boolean operations.
-
That is an interesting, but also bit complex use-case. Probably will be heavy on computation, sou you will need to do the computing in a worker. Also you need to pass graphic data for rendering back to main thread. And there is a question if you already have chosen webgl engine, or you can use current jsacad default: regl