Minor tweaks to some of the objects to make indexing them easier.
This commit is contained in:
@@ -5,3 +5,6 @@ class Triangle:
|
||||
self.coords = coords # Matrix3x3
|
||||
self.object_id = None
|
||||
self.color = None
|
||||
|
||||
def __getitem__(self, key):
|
||||
return self.coords[key]
|
||||
|
||||
Reference in New Issue
Block a user