OSDN Git Service

fix mqobuilder
[meshio/pymeshio.git] / examples / pymeshviewer.py
index f617d2a..6aa79ac 100644 (file)
@@ -49,9 +49,12 @@ class Frame(tkinter.Frame):
         if not model:\r
             print('fail to load %s' % path)\r
             return\r
-        self.glworld.setRoot(model)\r
         print('load %s' % path)\r
-        self.view.look_bb(*model.get_boundingbox())\r
+        print(model)\r
+        self.glworld.setRoot(model)\r
+        bb=model.get_boundingbox()\r
+        print(bb)\r
+        self.view.look_bb(*bb)\r
         self.glwidget.onDraw()\r
 \r
     def loadModel(self, path):\r