From 1aef3f05cb7ab49f9ed32d4fd9875c14d82bb630 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Sat, 23 Jul 2022 10:24:08 -0300 Subject: [PATCH] Hinge in place --- monitor/rear_mount.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/monitor/rear_mount.py b/monitor/rear_mount.py index f84088a..81850da 100644 --- a/monitor/rear_mount.py +++ b/monitor/rear_mount.py @@ -62,11 +62,12 @@ rear_mount = ( .faces(">X") .workplane(centerOption="CenterOfBoundBox", offset=-(rear_mount_width-20)/2) .transformed(rotate=cq.Vector(0, 0, 90)) - .center(-hinge_s / 2, rear_mount_thickness / 2) + .center(-hinge_s / 2, rear_mount_thickness / 2).tag("hingeplane") .placeSketch(hinge_profile_1) .extrude(-hinge_t) - .workplane(offset=-hinge_gap) + .workplaneFromTagged("hingeplane") + .workplane(offset=-hinge_t - hinge_gap) .placeSketch(hinge_profile_2) - .extrude(hinge_t)) + .extrude(-hinge_t)) -exporters.export(rear_mount, "rear_mount.stl") +exporters.export(rear_mount, "rear_mount.stl") \ No newline at end of file