Public
3D STL viewer with A1 Mini build volume
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data โ€“ all from the browser, and deployed in milliseconds.

STL Viewer

A web-based 3D model viewer and generator for creating printable STL files directly in your browser.

Demo Video

https://www.val.town/x/dcm31/stl-viewer/code/README.md

Watch the demo on Loom

Features

  • ๐ŸŽจ Generate 3D models procedurally using Three.js
  • ๐Ÿ‘๏ธ Interactive 3D viewer with orbit controls
  • ๐Ÿ’พ Export models as STL files for 3D printing
  • ๐Ÿ“ฆ Pre-built examples: Vase, Gear, Castle, Kratky, and Duck

Usage

Visit the live viewer and select from the example gallery to view and download pre-built models.

Want to Create Your Own Models?

You'll need to remix this val first! Click the "Remix" button at the top of the Val Town editor to create your own copy that you can edit.

Adding New Examples

Once you've remixed this val:

  1. Create a new file in examples/yourModel.ts
  2. Define your model following the Example interface
  3. Add the import and array entry in examples.ts

That's it! The viewer will automatically pick up your new model.