Closed bernhard-42 closed 2 months ago
@bernhard-42 I can't reproduce this problem. Here is my example:
from build123d import *
from ocp_vscode import show
before = Solid.make_box(1, 1, 1)
RigidJoint("j1", before, joint_location=Location((0.5, 0.5, 1), (0, 0, 0)))
before.color = Color("blue")
after = before.located(Rotation(0, 90, 0))
after.color = Color("red")
show(before, after, before.joints["j1"].symbol, after.joints["j1"].symbol)
The joint (which is relative to the part) moves with the part.
In the original code show(b1, j1.parent, j1.symbol, b1.joints["j1"].symbol)
is going to show the parent of j1
which is not the joint attached to the located
part anymore as it was copied too so that might have been confusing.
By the way, I was unable to get render_joints=True
to work in my show command and displayed the symbols instead.
yes, you're right. After having worked on the joints improval I do understand joints much better now and using the variable j1
in my example was the mistake. So all good here, thanks.
I am reworking the converter to ocp at the moment, so I can't easily test why render_joints
is not working, but I'll ensure it'll work in the new version
I ran into an issue with joints and
located
ormoved
Since![image](https://github.com/gumyr/build123d/assets/954408/0d267caa-15f5-4968-88e1-9e9640f19383)
located
creates a deep copy,j1
will be decoupled fromb1.joints["j1"]
When I use
locate
it works:Biggest impact: Joints don't play well with algebra mode (remember,
loc * shape
is implemented viamoved
)