Beispiel #1
0
        /// <summary>
        /// Exports the specified viewport.
        /// Exports model, camera and lights.
        /// </summary>
        /// <param name="viewport">
        /// The viewport.
        /// </param>
        public virtual void Export(Viewport3DX viewport)
        {
            this.ExportHeader();
            this.ExportViewport(viewport);

            // Export objects
            viewport.Traverse <GeometryModel3D>(this.ExportModel);

            // Export camera
            //this.ExportCamera(viewport.Camera);

            // Export lights
            //viewport.Children.Traverse<Light>(this.ExportLight);
        }