Final update, I have a solution I am happy with.
browserify plus a small script to combine my designs + jscad modeling + regl-renderer into a single
bundle.js. Then all I just include that script via standard
<script> tag on my page.
Final size of bundle.js: 99.9kb gzipped
Less than 100kb for a fully draggable, zoomable 3d design, directly from CAD files! That's smaller than a screenshot would be.
Design is live here if you're curious (but the rest of the project is still work-in-progress).
@z3dev not sure where it should go in docs. But there's a couple cool things I've done with JSCAD that would be hard to do with any other CAD software.
- From the same source files, I can generate both the colorized "assembled" model above, and a "print version" that has the parts arranged for 3D printing.
- Integrated into github CI/CD so that I know immediately if I broke my designs. Could easily write tests for things like bounding box size.
- Able to put the design in a website super efficiently. Directly from the source CAD files, without rendering to a huge mesh file format.