Rileva il formato del file 3D in C# .NET
Contents
[
Hide
]
Utilizzando Aspose.3D for .NET API, gli sviluppatori possono rilevare il formato dei file 3D supportati in C# prima di aprirlo perché l’estensione del file non garantisce che il contenuto del file sia appropriato.
Rileva il campione di programmazione del formato
Il seguente codice di esempio C# illustra come rilevare un formato di file di 3D (utilizzando il percorso o lo streaming del file) e verificarne l’estensione.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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()); |