def create_geom(self): DEBUG("create_geom") eye = array([0.0, 0.0, 7.0], dtype=float32) center = array([0.0, 0.0, 0.0], dtype=float32) up = array([0.0, 1.0, 0.0], dtype=float32) fov = 30.0 zNear = 1.0 zFar = 10.0 bias = 1 self.wv.createContext(bias, fov, zNear, zFar, eye, center, up) self.model_file = os.path.expanduser(os.path.abspath(self.geometry_file)) geom = STLGeometryObject(self.model_file) geom.get_visualization_data(self.wv, angle=15., relSide=.02, relSag=.001)