box compare
This commit is contained in:
parent
6e6ba93855
commit
33df0ed0dc
3
box.py
3
box.py
@ -99,6 +99,9 @@ class BoundingBox (object):
|
|||||||
if z<self.minz or z>=self.maxz: return False
|
if z<self.minz or z>=self.maxz: return False
|
||||||
|
|
||||||
return True;
|
return True;
|
||||||
|
|
||||||
|
def __cmp__(a, b):
|
||||||
|
return cmp( (a.origin, a.size), (b.origin, b.size) )
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "BoundingBox({0}, {1})".format(self.origin, self.size)
|
return "BoundingBox({0}, {1})".format(self.origin, self.size)
|
Reference in New Issue
Block a user