diff --git a/nhf/touhou/houjuu_nue/joints.py b/nhf/touhou/houjuu_nue/joints.py index e9f78ff..05cf0e7 100644 --- a/nhf/touhou/houjuu_nue/joints.py +++ b/nhf/touhou/houjuu_nue/joints.py @@ -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") diff --git a/nhf/touhou/houjuu_nue/wing.py b/nhf/touhou/houjuu_nue/wing.py index 2be8c1e..985080d 100644 --- a/nhf/touhou/houjuu_nue/wing.py +++ b/nhf/touhou/houjuu_nue/wing.py @@ -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