cosplay: Touhou/Houjuu Nue #4

Open
aniva wants to merge 189 commits from touhou/houjuu-nue into main
1 changed files with 4 additions and 2 deletions
Showing only changes of commit c878f65b47 - Show all commits

View File

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