3D dosyasının biçimini algılama
Contents
[
Hide
]
Aspose.3D for Java API, dosya uzantısının dosya içeriğinin uygun olduğunu garanti etmediği için açmadan önce 3D desteklenen biçimleri tespit etme desteğine sahiptir.
Detect Format rorogramming ample ample
Kaynak kodu, dosya formatını (dosya yolunu veya akışını kullanarak) nasıl tespit edeceğinizi ve uzantısını kontrol edeceğinizi gösterir.
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
// 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()); |