/boxbuilder

Primary LanguageTypeScriptOtherNOASSERTION

make 3d printable boxes

Web GUI tool to generate STLs of boxes with lids for 3D printing.

See the live app here

screenshot

How it works

The core of the code is pretty simple.

  • It's a React app with sliders made with create-react-app.
  • The fancy math is done with JSCad libraries.
  • Sliders modify a small data model of the box.
  • When model changes it calls box_to_solids() to produce JSCad geometry solids.
  • jscad-react does the interactive 3D rendering (presumably with ThreeJS underneath).
  • export_stl() uses a JSCad serializer to generate the STL as a binary blob
  • force download the blob as box.stl.