Beispiel #1
0
        public void changeModel(string filename)
        {
            Jusin.ThreeDLib.ModelLoadPlugin.IModelImportPlugin importer = new Jusin.ThreeDLib.ModelLoadPlugin.ThreeDS.ThreeDSLoader();
            List <ModelEntityBase> entities = importer.importFromFile(filename);

            this.loaded.entities = entities;
            // this.loaded = new CLoadedObject(model);
        }
Beispiel #2
0
        public void addModel(string filename)
        {
            Jusin.ThreeDLib.ModelLoadPlugin.IModelImportPlugin importer = new Jusin.ThreeDLib.ModelLoadPlugin.ThreeDS.ThreeDSLoader();
            List <ModelEntityBase> entities = importer.importFromFile(filename);

            this.model_manager.addModel(new CLoadedObject(entities));
            //this.loaded.entities = entities;
        }
Beispiel #3
0
        public UserControl1()
        {
            model_manager  = ModelManager.getInstance();
            camera         = new CCamera();
            camera.Change += new EventHandler(this.onCameraChange);
            model_manager.ModelsChange += new EventHandler(this.onModelsChange);

            InitializeComponent();
            this.ContextMenuStrip = normalMenuStrip;

            is_mid_mouse_on = false;
            mag_speed       = 45F;
            rotate_speed    = 1.0F;
            clearColor      = Color.FromArgb(0, 240, 240, 240);
            Jusin.ThreeDLib.ModelLoadPlugin.IModelImportPlugin importer = new Jusin.ThreeDLib.ModelLoadPlugin.ThreeDS.ThreeDSLoader();
            List <ModelEntityBase> entities = importer.importFromFile("c:\\xyz_axis.3ds");

            xyz_axis = new CLoadedObject(entities);
        }