Detectar formato de archivo 3D
Contents
[
Hide
]
Aspose.3D for Java API admite la detección de formatos compatibles con 3D antes de abrir porque la extensión del archivo no garantiza que el contenido del archivo sea apropiado.
Detectar formato de muestra de programación
Este código fuente ilustra cómo detectar el formato del archivo (utilizando la ruta de acceso o flujo) y comprobar su extensión.
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()); |