cosplay: Touhou/Houjuu Nue #4
|
@ -972,13 +972,13 @@ class ElbowJoint(Model):
|
||||||
Cq.Location((-lip_dz, 0, 0), (1, 0, 0), 90) *
|
Cq.Location((-lip_dz, 0, 0), (1, 0, 0), 90) *
|
||||||
Cq.Location((0, 0, 0), (0, 1, 0), 90)
|
Cq.Location((0, 0, 0), (0, 1, 0), 90)
|
||||||
)
|
)
|
||||||
loc_disk = flip_x * flip_z * Cq.Location((-self.child_arm_radius, 0, -dz), (0, 0, 1), angle)
|
loc_disk = flip_x * flip_z * Cq.Location((-self.child_arm_radius, 0, 0), (0, 0, 1), angle)
|
||||||
loc_cut_rel = Cq.Location((0, self.disk_joint.spring.radius_inner, -self.disk_joint.disk_bot_thickness))
|
loc_cut_rel = Cq.Location((0, self.disk_joint.spring.radius_inner, -self.disk_joint.disk_bot_thickness))
|
||||||
disk_cut = self.disk_joint._disk_cut().located(
|
disk_cut = self.disk_joint._disk_cut().located(
|
||||||
loc_lip.inverse * loc_cut_rel * loc_disk)
|
loc_lip.inverse * loc_cut_rel * loc_disk)
|
||||||
result = (
|
result = (
|
||||||
Cq.Assembly()
|
Cq.Assembly()
|
||||||
.add(self.disk_joint.disk(), name="disk")
|
.add(self.disk_joint.disk(), name="disk", loc=Cq.Location((0, 0, -dz)))
|
||||||
.add(self.lip().cut(disk_cut), name="lip", loc=loc_disk.inverse * loc_lip)
|
.add(self.lip().cut(disk_cut), name="lip", loc=loc_disk.inverse * loc_lip)
|
||||||
.add(self.actuator_mount(), name="act", loc=self.actuator_mount_loc(child=True))
|
.add(self.actuator_mount(), name="act", loc=self.actuator_mount_loc(child=True))
|
||||||
)
|
)
|
||||||
|
@ -1014,7 +1014,7 @@ class ElbowJoint(Model):
|
||||||
)
|
)
|
||||||
housing = self.disk_joint.housing_upper()
|
housing = self.disk_joint.housing_upper()
|
||||||
housing_loc = Cq.Location(
|
housing_loc = Cq.Location(
|
||||||
(0, 0, housing_dz),
|
(0, 0, 0),
|
||||||
(0, 0, 1),
|
(0, 0, 1),
|
||||||
-self.disk_joint.tongue_span / 2 + self.angle_neutral
|
-self.disk_joint.tongue_span / 2 + self.angle_neutral
|
||||||
)
|
)
|
||||||
|
@ -1022,7 +1022,7 @@ class ElbowJoint(Model):
|
||||||
loc_net_housing = axial_offset * housing_loc
|
loc_net_housing = axial_offset * housing_loc
|
||||||
result = (
|
result = (
|
||||||
Cq.Assembly()
|
Cq.Assembly()
|
||||||
.add(housing, name="housing")
|
.add(housing, name="housing", loc=Cq.Location((0, 0, housing_dz)))
|
||||||
.add(self.lip(), name="lip", loc=
|
.add(self.lip(), name="lip", loc=
|
||||||
loc_net_housing.inverse *
|
loc_net_housing.inverse *
|
||||||
Cq.Location((0, 0, 0), (0, 1, 0), 180) *
|
Cq.Location((0, 0, 0), (0, 1, 0), 180) *
|
||||||
|
|
Loading…
Reference in New Issue