From 697e28d51d243d678671155f4390f93dee0ba9d7 Mon Sep 17 00:00:00 2001 From: fenn <fennetic.net> Date: Thu, 6 Aug 2009 01:37:41 -0500 Subject: RodHole is actually the same as HollowStud; StudHole is actually referring to the outer rim, not the hole, so i gave it a new name --- interfaces.py | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/interfaces.py b/interfaces.py index f16ebce..24a9d6d 100644 --- a/interfaces.py +++ b/interfaces.py @@ -39,7 +39,7 @@ class PressFit(Feature): pass class SnapFit(Feature): - '''same as PressFit but with no friction, and a restorative force''' + '''same as PressFit but with less friction, and a restorative force''' pass class Face(Feature, PlanarJoint): @@ -59,29 +59,30 @@ class AntiStud(RevoluteJoint, PressFit): self.complement = Stud self.example = 3005 -class StudHole(RevoluteJoint, PressFit): +class StudCup(RevoluteJoint, PressFit): def __init__(self): - self.complement = [Stud, AntiStudHole] + self.complement = [Stud, AntiStudCup] self.example = 4073 -class AntiStudHole(RevoluteJoint, PressFit): +class AntiStudCup(RevoluteJoint, PressFit): ''''this occurs when there are 4 Studs or TechnicStuds in a square''' def __init__(self): - self.complement = StudHole + self.complement = StudCup self.example = 2654 -class TallStudHole(StudHole): +class TallStudCup(StudCup): def __init__(self): - self.complement = [Stud, AntiStudHole] + self.complement = [Stud, AntiStudCup] self.example = '3062a' class TechnicStud(Stud): pass -class HollowStud(Stud, PrismaticJoint): +class HollowStud(Stud, PrismaticJoint): def __init__(self): + assert isinstance(self, RevoluteJoint) self.complement = [Rod, AntiStud] - self.example = '3062b' + self.example = '3062b' #4081b class DuploStud(PressFit): def __init__(self): @@ -93,14 +94,9 @@ class DuploAntiStud(PressFit): class Rod(RevoluteJoint, PressFit): def __init__(self): - self.complement = [Claw, RodHole, HollowStud] + self.complement = [Claw, HollowStud] self.example = 3957 -class RodHole(RevoluteJoint, PressFit): - def __init__(self): - self.complement = Rod - self.example = '4081b' - class Claw(RevoluteJoint, SnapFit, PressFit): def __init__(self): self.complement = Rod -- cgit v1.2.3