Пример #1
0
        static Viewport3DEx CreateViewport()
        {
            var viewport = new Viewport3DEx { };

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

            return viewport;
        }
Пример #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();
        }