Skip to content

OmegaGiven/OG-3dmodeler

Repository files navigation

OG-3dmodeler

OG-3dmodeler is a phone-friendly browser app for making small, practical 3D-printable models. The main branch is a static prototype: users design models, preview them in 3D, and export STL or 2D files directly in the browser.

image image

Current Tools

Business Card Modeler

  • Front-only card design for reliable STL generation
  • Preset card sizes: US standard, EU standard, square, and custom dimensions
  • 2D editor with text, QR codes, SVG logo import, color, depth, raised/engraved/cut-through modes, zoom, pan, undo/redo, and delete
  • 3D preview with raised details and cut-through geometry
  • Printability warnings for off-card elements, QR cut-through, thin details, tight gaps, engraving depth, and cut-through text islands
  • Nozzle diameter and tolerance settings for printability checks
  • SVG, PNG, PDF, and STL export

Lid Maker

  • Circular or square lids
  • Inner-fit lids for openings and outer-fit lids that wrap around the outside of an object
  • Explicit diameter/dimension labels for opening inner dimensions vs object outer dimensions
  • Top thickness, lip height, lip wall, lip inset, nozzle diameter, and tolerance controls
  • Tolerance changes generated fit clearance
  • Interactive 3D preview and STL export

Washer Maker

  • Inner diameter, outer diameter, and height controls
  • Nozzle and tolerance checks for thin washer walls, small holes, and very low heights
  • Tolerance adjusts generated OD/ID fit
  • Interactive 3D preview and STL export

Prototype Behavior

  • No accounts, payments, or hosted backend are required on main
  • Designs are saved locally in the browser
  • STL generation happens in the browser
  • STL files are downloaded locally and can be opened in a slicer
  • The experimental local slicing/printing bridge lives on the bridge-print-flow branch

Tech Stack

  • React + Vite + TypeScript
  • Konva.js for the 2D business card editor
  • Three.js for 3D previews and STL geometry
  • Browser-side STL generation
  • GitHub Pages for the static hosted prototype

Local Development

Install dependencies:

npm install

Run the web app:

npm run dev

Run on your local network for phone testing:

npm run dev -- --host 0.0.0.0

Run tests:

npm test

Build:

npm run build

GitHub Pages Deployment

The repository includes a GitHub Actions workflow at .github/workflows/pages.yml.

  1. Open the GitHub repo settings.
  2. Go to Pages.
  3. Set Source to GitHub Actions.
  4. Push to main.

The workflow builds the Vite app and deploys dist to:

https://OmegaGiven.github.io/OG-3dmodeler/

Bridge Branch

The local slice/print bridge was moved off main and preserved on:

git checkout bridge-print-flow

Use that branch if you want to continue experimenting with sending generated STL files to a local slicer or printer service.

About

Various 3d modeling tools for repeatable objects with slight variations

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors