summaryrefslogtreecommitdiff
path: root/solid.py
diff options
context:
space:
mode:
authorAnthony LaTorre <telatorre@gmail.com>2011-06-02 15:00:26 -0400
committerAnthony LaTorre <telatorre@gmail.com>2011-06-02 15:00:26 -0400
commit8bbdf7f53b918857a09a9bee4a158f13834bfce6 (patch)
tree0af80a167c25af46eb21f285f5bca4647c0b7e5c /solid.py
parentd0825a136ff65b36069ff8b078b9fd97adeed0df (diff)
downloadchroma-8bbdf7f53b918857a09a9bee4a158f13834bfce6.tar.gz
chroma-8bbdf7f53b918857a09a9bee4a158f13834bfce6.tar.bz2
chroma-8bbdf7f53b918857a09a9bee4a158f13834bfce6.zip
triangle mesh is now stored everywhere as a split list of vertices and triangles
Diffstat (limited to 'solid.py')
-rw-r--r--solid.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/solid.py b/solid.py
index fe22463..6bf3790 100644
--- a/solid.py
+++ b/solid.py
@@ -54,5 +54,5 @@ class Solid(object):
else:
self.color = np.tile(color, len(self.mesh))
- def build(self):
- return np.inner(self.mesh.build(), self.rotation) + self.displacement
+ def __len__(self):
+ return len(self.mesh)