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.