Save a 3D Document in different 3D Formats using C#

Overview

The article explains how you can save 3D document in various formats using C# 3D document processing library, including

  • Save a 3D Document in FBX format using C# - AutoDesk
  • Save a 3D Document in DAE format using C# - Collada
  • Save a 3D Document in 3DS format using C# - Discreet 3D Studio
  • Save a 3D Document in DRC format using C# - Google Draco

Save a 3D Scene in Supported 3D formats

The C# code sample below shows how to save a 3D Scene or document to a stream in various supported 3D formats.

// For complete examples and data files, please go to https://github.com/aspose-3d/Aspose.3D-for-.NET
// Load a 3D document into Aspose.3D
Scene scene = new Scene();
// Open an existing 3D scene
scene.Open("document.fbx");
// Save Scene to a stream
MemoryStream dstStream = new MemoryStream();
scene.Save(dstStream, FileFormat.FBX7500ASCII);
// Save Scene to a local path
scene.Save("output_out.fbx");