fix: Polygon sliver on left s3

This commit is contained in:
Leni Aniva 2024-07-21 00:17:43 -07:00
parent aba1ce0f3e
commit 579c10e373
Signed by: aniva
GPG Key ID: 4D9B1C8D10EA4C50
1 changed files with 4 additions and 2 deletions

View File

@ -1180,13 +1180,15 @@ class WingL(WingProfile):
def _mask_wrist(self) -> list[Tuple[float, float]]: def _mask_wrist(self) -> list[Tuple[float, float]]:
l = 200 l = 200
elbow_bot_x, _ = self.elbow_bot_loc.to2d_pos() elbow_bot_x, _ = self.elbow_bot_loc.to2d_pos()
_, elbow_top_y = self.elbow_top_loc.to2d_pos() elbow_top_x, elbow_top_y = self.elbow_top_loc.to2d_pos()
_, wrist_bot_y = self.wrist_bot_loc.to2d_pos() _, wrist_bot_y = self.wrist_bot_loc.to2d_pos()
wrist_top_x, wrist_top_y = self.wrist_top_loc.to2d_pos()
return [ return [
(0, -l), (0, -l),
(elbow_bot_x, wrist_bot_y), (elbow_bot_x, wrist_bot_y),
self.wrist_bot_loc.to2d_pos(), self.wrist_bot_loc.to2d_pos(),
self.wrist_top_loc.to2d_pos(), self.wrist_top_loc.to2d_pos(),
(elbow_bot_x, elbow_top_y + l), (wrist_top_x, wrist_top_y + l),
(elbow_top_x, elbow_top_y + l),
(0, l), (0, l),
] ]