Skip to content

Instantly share code, notes, and snippets.

@eonist
Created March 12, 2026 07:25
Show Gist options
  • Select an option

  • Save eonist/e250651a8013f4e3fba24ae148749ff8 to your computer and use it in GitHub Desktop.

Select an option

Save eonist/e250651a8013f4e3fba24ae148749ff8 to your computer and use it in GitHub Desktop.
agent cad designer

That's a great workflow — OpenSCAD is code-based, so you just describe what you want and I write the script. Perfect for parametric bike frame geometry where everything is defined by numbers.

But there's actually an even better option for your needs: CadQuery — it's a Python CAD library that works the same way (you prompt, I code) but exports STEP files directly, which factories prefer over OpenSCAD's STL. cadexchanger

OpenSCAD vs CadQuery

OpenSCAD CadQuery (Python)
How it works Script → 3D model Python → 3D model
AI-promptable
STEP export (factory-ready) ❌ STL only ✅ native STEP
Curved tubes / fillets Weak Strong (NURBS)
Blender import ✅ via STL ✅ via STEP or STL
Parametric

For a bike frame with curved seatstays, tube intersections, and smooth welds — CadQuery handles that much better than OpenSCAD's polygon mesh approach.

The Workflow

  1. You sketch on iPad — proportions, vibe
  2. You prompt me — "make the downtube 50mm OD, 581mm long, at 41° from horizontal, with a 435mm cutout on the underside..."
  3. I write the code — CadQuery or OpenSCAD, run it here
  4. You get files — STEP for factory, STL for Blender renders
  5. Blender on your Mac — materials, lighting, Instagram shots

Want me to test a quick CadQuery setup now with a basic frame triangle to see if it runs, or save it for after your sketch tomorrow?

@eonist
Copy link
Author

eonist commented Mar 12, 2026

any rendered pplx computer can run?

The environment is being slow right now — can't test what's installed. But based on your previous session and what typically runs here:

What Can Render Here

Tool 3D Model Render to PNG Quality
OpenSCAD (CLI) ✅ code → geometry --render --o file.png Basic — flat shading, no materials. Good for shape validation
Matplotlib 3D ✅ wireframe/surface plots ✅ saves PNG Very basic — wireframe or simple surfaces
Plotly ✅ 3D mesh ✅ saves PNG Decent — smooth shading, interactive-looking
Trimesh + Pyrender ✅ if installable ✅ software renderer Good — proper 3D with lighting, shadows

Realistic Expectation

OpenSCAD's built-in render is the most reliable option here. It outputs PNG with basic shading — enough to validate geometry and proportions, not enough for Instagram hero shots. Think "engineering preview," not "product render."

For your workflow:

What Where Quality
Shape validation Here — OpenSCAD → PNG ⭐⭐ engineering preview
Quick 3D checks Here — Plotly mesh → PNG ⭐⭐⭐ decent
Photorealistic renders Your Mac — Blender Cycles ⭐⭐⭐⭐⭐ Instagram-ready

So the answer is: yes I can render basic previews here so you can check proportions and geometry without leaving the conversation. But the final beauty shots happen on your Mac in Blender.

@eonist
Copy link
Author

eonist commented Mar 12, 2026

are there any 9online rendering that I can just use?

Yes — several browser-based options where you just upload your STL and render:

Best Online Renderers (No Install)

Tool Quality Free? How It Works
Vectary ⭐⭐⭐⭐ Free tier (3 projects) Upload STL → add materials, lighting, HDRI → render. Closest to "KeyShot in a browser" 12
Clara.io ⭐⭐⭐⭐ Free Full cloud 3D editor + renderer. Import STL, set up scene, ray-trace render 3
Lighttracer ⭐⭐⭐⭐⭐ Free (watermarked) Upload STL → one-click photorealistic render. GPU ray-tracing in the browser. Arguably best quality online 4
Sketchfab ⭐⭐⭐ Free Upload STL → PBR materials → interactive 3D viewer + screenshot. Also embeddable on your website 5
3DViewer.net ⭐⭐ Free Quick preview, not real rendering 6

My Pick for You

Vectary — it's the fastest path from STL to Instagram render without installing anything. You drag-drop your STL, pick a matte black material from the library, choose studio lighting, and hit render. Plus it generates an embeddable 3D viewer you can put on your Omera website — visitors can spin the frame around in the browser.1

Lighttracer if you want the absolute best render quality in a browser — it's a proper GPU path tracer.4

Your workflow becomes: OpenSCAD → Export STL → Upload to Vectary → Render → Download PNG → Instagram. Zero apps to install beyond OpenSCAD which you already have.
789101112131415

Footnotes

  1. https://career.vectary.com/3d-design-tool 2

  2. https://www.3dnatives.com/en/10-free-modeling-software-210720204/

  3. https://clara.io

  4. https://lighttracer.org/web.html 2

  5. https://sketchfab.com

  6. https://3dviewer.net

  7. https://www.webrotate360.com

  8. https://www.danthree.studio/en/studio-tools/3d-viewer

  9. https://www.coohom.com/case/3d-render-home

  10. https://www.style3d.com/blog/which-are-the-best-online-tools-for-3d-modelling/

  11. https://fast3d.io

  12. https://parametric-architecture.com/8-free-browser-based-3d-modeling-software-for-beginners/

  13. https://www.figuro.io

  14. https://www.meshy.ai/3d-tools/online-viewer/stl

  15. https://www.viewstl.com

@eonist
Copy link
Author

eonist commented Mar 12, 2026

That's still great — the M1 GPU handles WebGPU/WebGL rendering well. Lighttracer's web version runs directly on your GPU in the browser, so the M1's unified memory architecture actually helps since it shares RAM between CPU and GPU. [lighttracer](https://lighttracer.org)

Both Lighttracer and Vectary will work fine on M1 MacBook in Safari or Chrome. The renders might take a few seconds longer than on your M4 Mac Mini, but for a single bike frame STL it won't be an issue — it's not like rendering a full scene with thousands of objects.

Just go to [lighttracer.org/web.html](https://lighttracer.org/web.html), drag your STL in, and try it. If it feels sluggish, Chrome tends to have better WebGPU support than Safari on Mac. [develop3d](https://develop3d.com/visualisation/light-tracer-render-2-3-offers-1500-pbr-materials/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment