Hinge in place

This commit is contained in:
Roberto Alsina 2022-07-23 10:24:08 -03:00
parent e19a2f7aff
commit 1aef3f05cb

View File

@ -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")