Пример #1
0
        /// <summary>
        /// Exports the specified viewport.
        /// Exports model, camera and lights.
        /// </summary>
        /// <param name="viewport">The viewport.</param>
        public void Export(Viewport3D viewport)
        {
            ExportHeader();
            ExportViewport(viewport);

            // Export objects
            Visual3DHelper.Traverse <GeometryModel3D>(viewport.Children, ExportModel);

            // Export camera
            ExportCamera(viewport.Camera);

            // Export lights
            Visual3DHelper.Traverse <Light>(viewport.Children, ExportLight);
        }
Пример #2
0
 public void Export(Visual3D visual)
 {
     ExportHeader();
     Visual3DHelper.Traverse <GeometryModel3D>(visual, ExportModel);
 }