public Room(MainWindow mainWindow)
        {
            this.mainWindow = mainWindow;
            mainDictionairy = new BlenderResourceDictionary(Directory.GetParent(Directory.GetCurrentDirectory()).Parent.FullName + @"\Spielraumblend15.xaml");
            BlenderModel roomModel = new BlenderModel(mainDictionairy, "Raum");

            roomModel.rotate(-90, 0, 0);
            roomModel.rotate(0, -90, 0);
            roomModel.translate(0, -0.5, 3);
            roomModel.scale(-0.2, 0, 0);

            BlenderModel wallModel = new BlenderModel(mainDictionairy, "Wand");

            wallModel.rotate(0, -90, 0);
            wallModel.rotate(0, 0, -90);
            wallModel.scale(-0.75, -0.75, -0.75);
            wallModel.translate(0, 0, 1.9);

            BlenderModel wallPartModel = new BlenderModel(mainDictionairy, "Wand_Teil");

            wallPartModel.rotate(0, -90, 0);
            wallPartModel.rotate(0, 0, -90);
            wallPartModel.scale(-0.75, -0.75, -0.75);
            wallPartModel.translate(0, 0, 1.9);
            wallPartModel.translate(-0.5, 0.788, 0);

            roomModel.addToViewport(mainWindow.mainViewPort);
            wallModel.addToViewport(mainWindow.mainViewPort);
            wallPartModel.addToViewport(mainWindow.mainViewPort);

            populateElementList();
        }
        public Room(MainWindow mainWindow)
        {
            this.mainWindow = mainWindow;
            mainDictionairy = new BlenderResourceDictionary(Directory.GetParent(Directory.GetCurrentDirectory()).Parent.FullName + @"\Spielraumblend15.xaml");
            BlenderModel roomModel = new BlenderModel(mainDictionairy, "Raum");
            roomModel.rotate(-90, 0, 0);
            roomModel.rotate(0, -90, 0);
            roomModel.translate(0, -0.5, 3);
            roomModel.scale(-0.2, 0, 0);

            BlenderModel wallModel = new BlenderModel(mainDictionairy, "Wand");
            wallModel.rotate(0, -90, 0);
            wallModel.rotate(0, 0, -90);
            wallModel.scale(-0.75, -0.75, -0.75);
            wallModel.translate(0, 0, 1.9);

            BlenderModel wallPartModel = new BlenderModel(mainDictionairy, "Wand_Teil");
            wallPartModel.rotate(0, -90, 0);
            wallPartModel.rotate(0, 0, -90);
            wallPartModel.scale(-0.75, -0.75, -0.75);
            wallPartModel.translate(0, 0, 1.9);
            wallPartModel.translate(-0.5, 0.788, 0);

            roomModel.addToViewport(mainWindow.mainViewPort);
            wallModel.addToViewport(mainWindow.mainViewPort);
            wallPartModel.addToViewport(mainWindow.mainViewPort);

            populateElementList();
        }
        private void setTransformations()
        {
            model.resetTransformations();

            switch (model.index)
            {
            case "Fuenfeck":
                model.scale(-0.898, -0.882, -0.898);
                break;

            case "Kreuz":
                model.rotate(0, -90, 0);
                model.scale(-0.87, -0.91, -0.87);
                break;

            case "Sechseck":
                model.rotate(0, 90, 0);
                model.rotate(0, 0, 90);
                model.scale(-0.81, -0.685, -0.81);
                break;

            case "Dreieck":
                model.rotate(0, 0, 5.5);
                model.rotate(0, 2.5, 0);
                model.scale(-0.86, -0.78, -0.86);

                break;

            default:
                model.scale(-0.82, -0.82, -0.82);
                break;
            }
        }