cosplay: Touhou/Houjuu Nue #4
|
@ -17,7 +17,6 @@ class FlatHeadBolt(Item):
|
|||
|
||||
|
||||
def generate(self) -> Cq.Assembly:
|
||||
print(self.name)
|
||||
head = Cq.Solid.makeCylinder(
|
||||
radius=self.diam_head / 2,
|
||||
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"
|
||||
|
||||
def generate(self) -> Cq.Assembly:
|
||||
print(self.name)
|
||||
knob = Cq.Solid.makeCylinder(
|
||||
radius=self.diam_knob / 2,
|
||||
height=self.height_knob,
|
||||
|
@ -110,7 +108,6 @@ class HexNut(Item):
|
|||
return Role.CONNECTION
|
||||
|
||||
def generate(self) -> Cq.Workplane:
|
||||
print(self.name)
|
||||
r = self.width / math.sqrt(3)
|
||||
result = (
|
||||
Cq.Workplane("XY")
|
||||
|
|
|
@ -55,7 +55,7 @@ class TestJoints(unittest.TestCase):
|
|||
with self.subTest(slot=slot, right_handed=False):
|
||||
self.torsion_joint_case(j, slot)
|
||||
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):
|
||||
with self.subTest(slot=slot, right_handed=True):
|
||||
self.torsion_joint_case(j, slot)
|
||||
|
|
Loading…
Reference in New Issue