Ejemplo n.º 1
0
 def __init__(self):
     """ Initialize the viewer. """
     self.init_interface()
     self.init_opengl()
     self.init_scene()
     self.init_interaction()
     init_primitives()
Ejemplo n.º 2
0
 def __init__(self):
     """ Initialize the viewer. """
     self.init_interface()
     self.init_opengl()
     self.init_scene()
     self.init_interaction()
     init_primitives()
Ejemplo n.º 3
0
 def __init__(self):
     """ Initialize the viewer. """
     self.init_interface()
     self.init_opengl()
     self.init_scene()
     self.init_camera()
     self.init_interaction()
     init_primitives() # makes lists of primitive objects defined
 def __init__(self):
     """ Initialize the viewer. """
     #初始化接口,创建窗口并注册渲染函数
     self.init_interface()
     #初始化opengl的配置
     self.init_opengl()
     #初始化3d场景
     self.init_scene()
     #初始化交互操作相关的代码
     self.init_interaction()
     init_primitives()
Ejemplo n.º 5
0
    def __init__(self):
        # Initialize our interface
        self.init_interface()

        # initialize openGL
        # ModelView and inverse are set to identity matrix to start with
        self.inverseModelView = numpy.identity(4)
        self.ModelView = numpy.identity(4)
        self.init_opengl()

        # initialize our scene
        self.scene = Scene()
        self.create_sample_scene()

        # Initialize our interactions
        self.interaction = Interaction()
        self.init_interaction()
        init_primitives()