diff options
| author | Anthony LaTorre <telatorre@gmail.com> | 2011-06-02 15:00:26 -0400 |
|---|---|---|
| committer | Anthony LaTorre <telatorre@gmail.com> | 2011-06-02 15:00:26 -0400 |
| commit | 8bbdf7f53b918857a09a9bee4a158f13834bfce6 (patch) | |
| tree | 0af80a167c25af46eb21f285f5bca4647c0b7e5c /view.py | |
| parent | d0825a136ff65b36069ff8b078b9fd97adeed0df (diff) | |
| download | chroma-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 'view.py')
| -rwxr-xr-x | view.py | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -26,13 +26,13 @@ def view(geometry, name=''): - move: shift+click and drag the mouse """ - lower_bound = np.array([np.min(geometry.mesh[:,:,0]), - np.min(geometry.mesh[:,:,1]), - np.min(geometry.mesh[:,:,2])]) + lower_bound = np.array([np.min(geometry.mesh[:][:,:,0]), + np.min(geometry.mesh[:][:,:,1]), + np.min(geometry.mesh[:][:,:,2])]) - upper_bound = np.array([np.max(geometry.mesh[:,:,0]), - np.max(geometry.mesh[:,:,1]), - np.max(geometry.mesh[:,:,2])]) + upper_bound = np.array([np.max(geometry.mesh[:][:,:,0]), + np.max(geometry.mesh[:][:,:,1]), + np.max(geometry.mesh[:][:,:,2])]) scale = np.linalg.norm(upper_bound-lower_bound) |
