public void Init()
        {
            var configMap = new ExeConfigurationFileMap() { ExeConfigFilename = settingsFile };
            var config = ConfigurationManager.OpenMappedExeConfiguration(configMap, ConfigurationUserLevel.None);
            var configuration = (PlaneGeneratorConfiguration)config.GetSection("planeGenerator");

            target = configuration.FromConfiguration();
            target.FillPlanes();
            target.FillIndices();
        }
예제 #2
0
        public TestForm()
        {
            InitializeComponent();

            //_renderArea = new SoWinRenderArea(_panelView);
            myViewer = new SoWinExaminerViewer(this, "", true, SoWinFullViewer.BuildFlags.BUILD_ALL, SoWinViewer.Types.BROWSER);
            _root = new SoSeparator();
            _scene = GetSceneSettings();

            _sceneCenter = new SbVec3f(_scene.BoundaryBox.Length/2, _scene.BoundaryBox.Width/2,
                                       _scene.BoundaryBox.Height/2);
            _radius = new[] {_scene.BoundaryBox.Length, _scene.BoundaryBox.Width, _scene.BoundaryBox.Height}.Max()*2;

            CreateCamera();
            CreateLights();

            _testHelper = new TestHelper(this);
            _testHelper.CreateScene();
        }