bernhard-42 / vscode-ocp-cad-viewer

A viewer for OCP based Code-CAD (CadQuery, build123d) integrated into VS Code
Apache License 2.0
80 stars 9 forks source link

Joints of Compounds are not shown #8

Closed JonnyHaystack closed 7 months ago

JonnyHaystack commented 1 year ago

As the title says, although build123d allows you to add Joints to Compounds, they are not shown in the tree and model viewer

bernhard-42 commented 1 year ago

@JonnyHaystack Not sure I fully understand this.

b1 = Box(1, 2, 3)
b2 = Pos(1, 2, 3) * Box(1, 2, 1)

c = Compound.make_compound([b1, b2])
c.label="c"
j = RigidJoint("j", c,  Plane(c.faces().sort_by()[-1]).to_location())
show(c, render_joints=True)

shows image

Do you have an example that doesn't work?

bernhard-42 commented 1 year ago

@JonnyHaystack Is there still something open?

JonnyHaystack commented 1 year ago

Sorry haven't had a chance to try and reproduce this again

bernhard-42 commented 7 months ago

Will close now, please re-open, if it happens again