Ejemplo n.º 1
0
        static Viewport3DEx CreateViewport()
        {
            var viewport = new Viewport3DEx { };

            viewport.Children.Add(new ModelVisual3D
            {
                Content = new AmbientLight(Colors.White)
            });

            return viewport;
        }
Ejemplo n.º 2
0
        public TunnelPanel3D()
        {
            // Create the viewport that hosts the child elements.
            _viewport = CreateViewport();

            this.Loaded += OnLoaded;
            this.MouseDown += new MouseButtonEventHandler(TunnelPanel3D_MouseDown);

            //SetCameraZStartStopValues();
            //PosistionCamera();
            //BuildScene();
        }