summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfenn <fennetic.net>2009-08-06 01:37:41 -0500
committerfenn <fennetic.net>2009-08-06 01:37:41 -0500
commit697e28d51d243d678671155f4390f93dee0ba9d7 (patch)
tree370914a0f27b5c3f21655aeca1e053d75c6bb87d
parentf0e73c1328fdb77510f7abda9715b63cf51a4d67 (diff)
downloadlego-697e28d51d243d678671155f4390f93dee0ba9d7.tar.gz
lego-697e28d51d243d678671155f4390f93dee0ba9d7.zip
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
-rw-r--r--interfaces.py26
1 files 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