Exemple #1
0
        public void UpdateMesh(int nObjectID)
        {
            StoredCommands sc  = new StoredCommands();
            uint           key = sc.AppendSceneCommand_UpdateMesh(nObjectID);

            ExecuteCommands(sc);
        }
Exemple #2
0
        private void set_mesh_color_test()
        {
            mm.RemoteControl rc = new mm.RemoteControl();
            rc.Initialize();

            List <int> selected = get_selected_objects(rc);

            System.Diagnostics.Debug.Assert(selected != null && selected.Count == 1, "the mesh you want to color must be selected");

            vec3f c = new vec3f();

            c.x = 1.0f; c.y = 0.0f; c.z = 0.0f;

            StoredCommands sc = new StoredCommands();

            sc.ViewControl_SetTriangleColorMode(0);
            sc.AppendSceneCommand_SetAllVertexColors(selected[0], c);
            sc.AppendSceneCommand_UpdateMesh(selected[0]);

            rc.ExecuteCommands(sc);

            rc.Shutdown();
        }