feat: Leave movement gap for cushion

This commit is contained in:
Leni Aniva 2024-07-21 22:16:18 -07:00
parent 340aa7c6da
commit c878f65b47
Signed by: aniva
GPG Key ID: 4D9B1C8D10EA4C50
1 changed files with 4 additions and 2 deletions

View File

@ -599,6 +599,8 @@ class DiskJoint(Model):
# Angular span of movement # Angular span of movement
movement_angle: float = 120.0 movement_angle: float = 120.0
# leave some gap for cushion
movement_gap: float = 5.0
# Angular span of tongue on disk # Angular span of tongue on disk
tongue_span: float = 30.0 tongue_span: float = 30.0
tongue_length: float = 10.0 tongue_length: float = 10.0
@ -704,11 +706,11 @@ class DiskJoint(Model):
wall = Cq.Solid.makeCylinder( wall = Cq.Solid.makeCylinder(
radius=self.radius_housing, radius=self.radius_housing,
height=height, height=height,
angleDegrees=360 - self.opening_span, angleDegrees=360 - self.opening_span - self.movement_gap*2,
).cut(Cq.Solid.makeCylinder( ).cut(Cq.Solid.makeCylinder(
radius=self.radius_disk, radius=self.radius_disk,
height=height, height=height,
)).rotate((0, 0, 0), (0, 0, 1), self.opening_span) )).rotate((0, 0, 0), (0, 0, 1), self.opening_span+self.movement_gap)
return wall return wall
@target(name="housing-lower") @target(name="housing-lower")