Ejemplo n.º 1
0
        private void triangleFan3Button_Click(object sender, EventArgs e)
        {
            IGeometry geometry = TriangleFanExamples.GetExample3();

            DrawUtilities.DrawMultiPatch(_multiPatchGraphicsContainer3D, geometry);
            DrawUtilities.DrawOutline(_outlineGraphicsContainer3D, geometry);

            axSceneControl.SceneGraph.RefreshViewers();
        }
        private void extrusionButton9_Click(object sender, EventArgs e)
        {
            IGeometry geometry = ExtrusionExamples.GetExample9();

            DrawUtilities.DrawMultiPatch(_multiPatchGraphicsContainer3D, geometry);
            DrawUtilities.DrawOutline(_outlineGraphicsContainer3D, geometry);

            axSceneControl.SceneGraph.RefreshViewers();
        }
Ejemplo n.º 3
0
        private void Initialize()
        {
            _axesGraphicsContainer3D       = GraphicsLayer3DUtilities.ConstructGraphicsLayer3D("Axes");
            _multiPatchGraphicsContainer3D = GraphicsLayer3DUtilities.ConstructGraphicsLayer3D("MultiPatch");
            _outlineGraphicsContainer3D    = GraphicsLayer3DUtilities.ConstructGraphicsLayer3D("Outline");

            GraphicsLayer3DUtilities.DisableLighting(_multiPatchGraphicsContainer3D);

            axSceneControl.Scene.AddLayer(_axesGraphicsContainer3D as ILayer, true);
            axSceneControl.Scene.AddLayer(_multiPatchGraphicsContainer3D as ILayer, true);
            axSceneControl.Scene.AddLayer(_outlineGraphicsContainer3D as ILayer, true);

            DrawUtilities.DrawAxes(_axesGraphicsContainer3D);

            axSceneControl.SceneGraph.RefreshViewers();
        }