mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
Changed to ocp_vscode viewer
This commit is contained in:
parent
d0ca05856f
commit
7ac6a50040
5 changed files with 15 additions and 44 deletions
|
|
@ -1,4 +1,5 @@
|
|||
from build123d import *
|
||||
from ocp_vscode import *
|
||||
|
||||
|
||||
class JointBox(Part):
|
||||
|
|
@ -120,21 +121,4 @@ ball = JointBox(2, 2, 2, 0.99)
|
|||
j10 = RigidJoint("ball", ball, Location(Vector(0, 0, 1)))
|
||||
j9.connect_to(j10, angles=(10, 20, 30))
|
||||
|
||||
if "show_object" in locals():
|
||||
show_object(base, name="base", options={"alpha": 0.8})
|
||||
show_object(base.joints["side"].symbol, name="side joint")
|
||||
show_object(base.joints["hinge"].symbol, name="hinge joint")
|
||||
show_object(base.joints["slide"].symbol, name="slot joint")
|
||||
show_object(base.joints["slot"].symbol, name="pin slot joint")
|
||||
show_object(base.joints["hole"].symbol, name="hole")
|
||||
show_object(base.joints["socket"].symbol, name="socket joint")
|
||||
show_object(hinge_arm.joints["corner"].symbol, name="hinge_arm joint")
|
||||
show_object(fixed_arm, name="fixed_arm", options={"alpha": 0.6})
|
||||
show_object(fixed_arm.joints["top"].symbol, name="fixed_arm joint")
|
||||
show_object(hinge_arm, name="hinge_arm", options={"alpha": 0.6})
|
||||
show_object(slider_arm, name="slider_arm", options={"alpha": 0.6})
|
||||
show_object(pin_arm, name="pin_arm", options={"alpha": 0.6})
|
||||
show_object(slider_arm.joints["slide"].symbol, name="slider attachment")
|
||||
show_object(pin_arm.joints["pin"].symbol, name="pin axis")
|
||||
show_object(screw_arm, name="screw_arm")
|
||||
show_object(ball, name="ball", options={"alpha": 0.6})
|
||||
show_all(render_joints=True, transparent=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue