[英]Autodesk Forge Model Derivative API: OBJ files
Using Autodesk FORGE Model Derivative API to query geometry attributes from REVIT files results in very large OBJ files; 使用Autodesk FORGE Model Derivative API从REVIT文件中查询几何属性会产生非常大的OBJ文件。 eg a 30-40MBs REVIT file transforms to a 1GBs OBJ file.
例如,将30-40MBs REVIT文件转换为1GBs OBJ文件。
Yes, OBJ file can becomes big very quickly since you describe each triangles completely and I believe it isn't necessarily optimized at this point. 是的,因为您已经完全描述了每个三角形,所以OBJ文件很快就会变得很大,我认为此时并不一定已对其进行优化。 However the Forge API allows you to request geometry for individual components.
但是,Forge API允许您请求单个组件的几何。 For example, you could ask for a specific wall, door, or others geometry.
例如,您可以要求特定的墙壁,门或其他几何形状。 The Forge Model Derivative endpoint POST Job can specify which objects you want: see the objectIds array below.
Forge Model Derivative端点POST Job可以指定所需的对象:请参见下面的objectIds数组。
{
"input": {
"urn": "string",
"compressedUrn": false,
"rootFilename": "string"
},
"output": {
"formats": [
{
"type": "svf",
"views": [
"2d"
],
"advanced": {
"exportFileStructure": "single",
"modelGuid": "string",
"objectIds": [
"string"
]
}
}
]
}
}
To complete my answer, you can get the objectIds from the manifest file as you wish. 要完成我的答案,您可以根据需要从清单文件中获取objectIds。
Other alternatives, is to get the geometry in another format such as step, but today we got a limited choice today (svf, thumbnail, stl, step, iges, or obj). 其他替代方法是使几何图形具有另一种格式,例如step,但今天,我们今天的选择有限(svf,缩略图,stl,step,iges或obj)。 It will expand in future, as well as supporting options and optimizations for each formats.
它将在将来扩展,并为每种格式提供支持的选项和优化。
The SVF format which is the Forge Viewer format is an internal format and is not documented today. SVF格式是Forge Viewer格式,是一种内部格式,并且今天没有记录。 But is an an aggregate of json, png, SQLlite files which can be unzipped and reverse engineered fairly easy.
但是是json,png,SQLlite文件的集合,可以将其解压缩并进行反向工程非常容易。 However, the SVF formats might still be larger than the RVT file itself, but smaller than OBJ.
但是,SVF格式可能仍大于RVT文件本身,但小于OBJ。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.