r/build123d

I built a build123d feedback loop for coding agents
▲ 13 r/build123d+1 crossposts

I built a build123d feedback loop for coding agents

Free, open source, runs locally.

It lets your favorite coding agent run build123d scripts and "see" the output.

One thing I noticed when using coding agents to write build123d models was that the code would run but the result would have obvious visual errors... so I built agentcad.

A demo video is here: https://www.youtube.com/watch?v=Zsn31-IilWM&t=1s

More info: https://agentcad.dev/

u/jdilla127 — 6 days ago
▲ 15 r/build123d+1 crossposts

Convex hull in build123d v0.11.0 -- ConvexPolyhedra

build123d v0.11.0 was just released yesterday. One of the new features is ConvexPolyhedron which enables creating faceted solids (this is feature parity with OpenSCAD's hull). I believe this makes build123d the ONLY BREP based CAD system with this feature. There's a classic OpenSCAD hull example from hackaday which I remade in the latest release of build123d. Of course because build123d is a BREP based CAD, you have real fillets, which means you can eliminate the stress concentration where the two stand legs meet.

Screenshot with and without fillet and code:

from build123d import *

foot = Pos(X=50)*Rectangle(20,20)
foot2 = Pos(X=-50)*Rectangle(20,20)
post = Pos(Y=50,Z=100)*Box(25,25,20)

def tess(shape):
    return shape.tessellate(0.3,0.3)[0]

hull1 = ConvexPolyhedron([*tess(foot),*tess(post)])
hull2 = ConvexPolyhedron([*tess(foot2),*tess(post)])
stand = Part() + [hull1,hull2]

stress_edges = stand.edges().group_by(Axis.Z)[-5]

stand2 = Pos(X=130)*fillet(stress_edges,20)
u/Jern123d — 13 days ago