OSDN Git Service
(root)
/
meshio
/
pymeshio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
410c954
)
implement optimize
author
ousttrue
<ousttrue@gmail.com>
Thu, 29 Sep 2011 00:01:58 +0000
(09:01 +0900)
committer
ousttrue
<ousttrue@gmail.com>
Thu, 29 Sep 2011 00:01:58 +0000
(09:01 +0900)
examples/opengl/vertexarray.py
patch
|
blob
|
history
diff --git
a/examples/opengl/vertexarray.py
b/examples/opengl/vertexarray.py
index
4dc51c3
..
1c3b502
100644
(file)
--- a/
examples/opengl/vertexarray.py
+++ b/
examples/opengl/vertexarray.py
@@
-2,6
+2,7
@@
# coding: utf-8
\r
\r
from OpenGL.GL import *
\r
# coding: utf-8
\r
\r
from OpenGL.GL import *
\r
+import numpy
\r
\r
'''
\r
頂点配列
\r
\r
'''
\r
頂点配列
\r
@@
-119,7
+120,6
@@
class IndexedVertexArray(object):
glDisableClientState(GL_VERTEX_ARRAY)
\r
\r
def optimize(self):
\r
glDisableClientState(GL_VERTEX_ARRAY)
\r
\r
def optimize(self):
\r
- pass
\r
- #for v in self.vertexArrayMap.values():
\r
- # v.vertices=numpy.array(v.vertices, 'f')
\r
+ self.vertices=numpy.array(self.vertices, 'f')
\r
+ self.uvlist=numpy.array(self.uvlist, 'f')
\r
\r
\r