Rileva il formato del file 3D
Contents
[
Hide
]
Aspose.3D for Java API supporta il rilevamento di 3D formati supportati prima dell’apertura perché l’estensione del file non garantisce che il contenuto del file sia appropriato.
Rileva il campione di programmazione del formato
Questo codice sorgente illustra come rilevare il formato del file (utilizzando il percorso o il flusso del file) e controllarne l’estensione.
This file contains hidden or 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
// the path to the documents directory. | |
String MyDir = RunExamples.getDataDir(); | |
// detect format of 3D file | |
FileFormat inputFormat = FileFormat.detect(MyDir + "document.fbx"); | |
// display the file format | |
System.out.println("File Format: " + inputFormat.toString()); |