cosplay: Touhou/Houjuu Nue #4
|
@ -17,7 +17,6 @@ class FlatHeadBolt(Item):
|
||||||
|
|
||||||
|
|
||||||
def generate(self) -> Cq.Assembly:
|
def generate(self) -> Cq.Assembly:
|
||||||
print(self.name)
|
|
||||||
head = Cq.Solid.makeCylinder(
|
head = Cq.Solid.makeCylinder(
|
||||||
radius=self.diam_head / 2,
|
radius=self.diam_head / 2,
|
||||||
height=self.height_head,
|
height=self.height_head,
|
||||||
|
@ -61,7 +60,6 @@ class ThreaddedKnob(Item):
|
||||||
return f"Knob M{int(self.diam_thread)} h{int(self.height_thread)}mm"
|
return f"Knob M{int(self.diam_thread)} h{int(self.height_thread)}mm"
|
||||||
|
|
||||||
def generate(self) -> Cq.Assembly:
|
def generate(self) -> Cq.Assembly:
|
||||||
print(self.name)
|
|
||||||
knob = Cq.Solid.makeCylinder(
|
knob = Cq.Solid.makeCylinder(
|
||||||
radius=self.diam_knob / 2,
|
radius=self.diam_knob / 2,
|
||||||
height=self.height_knob,
|
height=self.height_knob,
|
||||||
|
@ -110,7 +108,6 @@ class HexNut(Item):
|
||||||
return Role.CONNECTION
|
return Role.CONNECTION
|
||||||
|
|
||||||
def generate(self) -> Cq.Workplane:
|
def generate(self) -> Cq.Workplane:
|
||||||
print(self.name)
|
|
||||||
r = self.width / math.sqrt(3)
|
r = self.width / math.sqrt(3)
|
||||||
result = (
|
result = (
|
||||||
Cq.Workplane("XY")
|
Cq.Workplane("XY")
|
||||||
|
|
|
@ -55,7 +55,7 @@ class TestJoints(unittest.TestCase):
|
||||||
with self.subTest(slot=slot, right_handed=False):
|
with self.subTest(slot=slot, right_handed=False):
|
||||||
self.torsion_joint_case(j, slot)
|
self.torsion_joint_case(j, slot)
|
||||||
def test_torsion_joint_right_handed(self):
|
def test_torsion_joint_right_handed(self):
|
||||||
j = joints.TorsionJoint(springs.TorsionSpring(right_handed=True))
|
j = joints.TorsionJoint(springs.TorsionSpring(mass=float('nan'), right_handed=True))
|
||||||
for slot in range(j.rider_n_slots):
|
for slot in range(j.rider_n_slots):
|
||||||
with self.subTest(slot=slot, right_handed=True):
|
with self.subTest(slot=slot, right_handed=True):
|
||||||
self.torsion_joint_case(j, slot)
|
self.torsion_joint_case(j, slot)
|
||||||
|
|
Loading…
Reference in New Issue