cosplay: Touhou/Houjuu Nue #4

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

View File

@ -62,8 +62,8 @@ class WingProfile(Model):
shoulder_base_bezier_x: float = -30.0 shoulder_base_bezier_x: float = -30.0
shoulder_base_bezier_y: float = 30.0 shoulder_base_bezier_y: float = 30.0
s0_hole_loc: Cq.Location = Cq.Location.from2d(-25, 33) s0_hole_width: float = 40.0
s0_hole_diam: float = 15.0 s0_hole_height: float = 10.0
s0_top_hole: bool = False s0_top_hole: bool = False
s0_bot_hole: bool = True s0_bot_hole: bool = True
@ -235,11 +235,17 @@ class WingProfile(Model):
) )
top = top == self.flip top = top == self.flip
if (self.s0_top_hole and top) or (self.s0_bot_hole and not top): if (self.s0_top_hole and top) or (self.s0_bot_hole and not top):
assert self.base_width > self.s0_hole_width
x = (self.base_width - self.s0_hole_width) / 2
sketch = ( sketch = (
sketch sketch
.reset() .reset()
.push([self.s0_hole_loc.to2d_pos()]) .polygon([
.circle(self.s0_hole_diam / 2, mode='s') (-x, 0),
(-x, self.s0_hole_height),
(-self.base_width + x, self.s0_hole_height),
(-self.base_width + x, 0),
], mode='s')
) )
return sketch return sketch