X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=examples%2Fopengl%2Fvertexarray.py;fp=examples%2Fopengl%2Fvertexarray.py;h=1c3b502cc86334436a2a16460246e2c6cda7b9d2;hb=ea48ac6ecdd69a4c3e033195d2da8f7e260370dd;hp=4dc51c3f790a1a8d9759c7b8ccde69dc9e19ebc3;hpb=410c9544d5585e71f26e85d90ffd142c76f97e43;p=meshio%2Fpymeshio.git diff --git a/examples/opengl/vertexarray.py b/examples/opengl/vertexarray.py index 4dc51c3..1c3b502 100644 --- a/examples/opengl/vertexarray.py +++ b/examples/opengl/vertexarray.py @@ -2,6 +2,7 @@ # coding: utf-8 from OpenGL.GL import * +import numpy ''' 頂点配列 @@ -119,7 +120,6 @@ class IndexedVertexArray(object): glDisableClientState(GL_VERTEX_ARRAY) def optimize(self): - pass - #for v in self.vertexArrayMap.values(): - # v.vertices=numpy.array(v.vertices, 'f') + self.vertices=numpy.array(self.vertices, 'f') + self.uvlist=numpy.array(self.uvlist, 'f')