fix: Tag direction in HS joint holes

This commit is contained in:
Leni Aniva 2024-07-24 16:21:46 -07:00
parent 8b5906948e
commit 7508d47265
Signed by: aniva
GPG Key ID: 4D9B1C8D10EA4C50
2 changed files with 5 additions and 4 deletions

View File

@ -204,7 +204,7 @@ class RootJoint(Model):
plane = result.copyWorkplane(Cq.Workplane('XY', origin=(0, 0, -self.child_extra_thickness)))
for i, (px, py) in enumerate(conn):
plane.moveTo(px, py).tagPlane(f"conn{i}")
plane.moveTo(px, py).tagPlane(f"conn{i}", direction="-Z")
result = (
result
.faces(">Z")

View File

@ -983,9 +983,10 @@ class WingProfile(Model):
if "s0" in parts and "root" in parts:
(
result
.constrain("s0/base?conn0", "root/child?conn0", "Plane", param=0)
.constrain("s0/base?conn1", "root/child?conn1", "Plane", param=0)
.constrain("s0/base?conn2", "root/child?conn2", "Plane", param=0)
.constrain("s0/base?conn0", "root/child?conn0", "Point")
.constrain("s0/base?conn1", "root/child?conn1", "Point")
.constrain("s0/base?conn2", "root/child?conn2", "Point")
#.constrain("s0/base?conn3", "root/child?conn3", "Point")
)
if "shoulder" in parts:
angle = shoulder_deflection * self.shoulder_joint.angle_max_deflection