Detect format of 3D file in C# .NET

Detect Format Programming Sample

The following C# sample code illustrates how to detect a file format of 3D file (using the file path or stream) and check its extension.

// For complete examples and data files, please go to https://github.com/aspose-3d/Aspose.3D-for-.NET
// Detect the format of a 3D file
FileFormat inputFormat = FileFormat.Detect("document.fbx");
// Display the file format
Console.WriteLine("File Format: " + inputFormat.ToString());