From: ousttrue Date: Thu, 29 Sep 2011 00:01:58 +0000 (+0900) Subject: implement optimize X-Git-Url: http://git.osdn.jp/view?a=commitdiff_plain;ds=sidebyside;h=ea48ac6ecdd69a4c3e033195d2da8f7e260370dd;hp=410c9544d5585e71f26e85d90ffd142c76f97e43;p=meshio%2Fpymeshio.git implement optimize --- 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')