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();
        }
Exemple #2
0
 static void Main(string[] args)
 {
     using (var program = new Program())
     {
         var testHelper = new TestHelper(program);
         testHelper.SetNotifier(program);
         testHelper.CreateScene();
         program.Render();
     }
 }