Beispiel #1
0
        public void importMapFile(MapFile map)
        {
            WavefrontOBJ newObj = new WavefrontOBJ();
            ConvexVolumeArrayToWaveFrontObjIterator converter = new ConvexVolumeArrayToWaveFrontObjIterator(newObj);

            map.iterateBrushes(converter);
            this.model = newObj;
            recreateGPUBuffers();
            UpdateDirectXDisplay();
        }
Beispiel #2
0
        private void exportObjFile(string fileName)
        {
            if (map == null)
            {
                return;
            }
            WavefrontOBJ obj = new WavefrontOBJ();
            ConvexVolumeArrayToWaveFrontObjIterator converter = new ConvexVolumeArrayToWaveFrontObjIterator(obj);

            map.iterateBrushes(converter);
            obj.saveObjModel(fileName);
        }