I'd really like to be able to define joints on parts, similar to how build123d does it.
This would help a lot with building assemblies.
I imagine it would look something like this:
const socket = part(() => {
sketch(() => {
circle(50)
})
extrude(50)
sketch(() => {
circle(5)
})
const hole = cut(5)
rigid_joint("hole", hole.startEdges().center, /* rotation? */)
})
const plug = part(() => {
sketch(() => {
circle(50)
})
extrude(50)
sketch(() => {
circle(5)
})
const plug_circle = cut(5)
rigid_joint("plug_circle", plug_circle.startEdges().center, /* rotation? */)
})
connect(socket, "hole", plug, "plug_circle")
Bonus points if somehow this allows mouse dragging to move the parts around respecting the joints.
I'd really like to be able to define joints on parts, similar to how build123d does it.
This would help a lot with building assemblies.
I imagine it would look something like this:
Bonus points if somehow this allows mouse dragging to move the parts around respecting the joints.