예제 #1
0
        public DrawingController()
        {
            projectorWin        = new ProjectorWin();
            projectorWin.status = new DrawingStatus();

            loader       = new _3DSLoaderByLib3DS();
            loaderForFun = new _3DSLoaderByLib3DS();
            loader.OpenFile("..\\Model\\Untitled.3ds");
            loaderForFun.OpenFile("..\\Model\\miku.3ds");

            buildingModel = loader.CreateBuildingModel();
            buildingModel.CalculateLocation();
            modelForFun = loaderForFun.CreateBuildingModel();
            modelForFun.CalculateLocation();

            drawer = new _3DSDrawerByLib3DS();

            projectorWin.buildingModelCursor  = buildingModel;
            projectorWin.buildingOutsideModel = buildingModel.GetChilds()["0"] as BuildingObjectLib3DS;
            projectorWin.modelForFun          = modelForFun;
            projectorWin.drawer = drawer;
            projectorWin.Show();
        }