使用 VRML 格式
Contents
[
Hide
]
打开 VRML 文件格式
Aspose.3D for Java 允许使用 VRML 版本1.0。VRML
文件格式已添加到 FileFormat
类。Aspose.3D 可以自动检测 VRML
格式,因此在Open方法中通常忽略 FileFormat
。下面的代码片段显示了如何打开 VRML 文件格式。
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-Java | |
// The path to the documents directory. | |
String MyDir = RunExamples.getDataDir(); | |
// initialize a scene | |
Scene scene = new Scene(); | |
// open Virtual Reality Modeling Language (VRML) file format | |
scene.open( MyDir + "test.wrl"); | |
// work with VRML file format... |