简体   繁体   English

Autodesk Forge模型衍生API:OBJ文件

[英]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文件。

  1. Is there any documentation on generating optimized OBJ files via FORGE Model Derivative API? 是否有关于通过FORGE Model Derivative API生成优化的OBJ文件的文档? Are there other alternatives to downloading optimized geometry attributes? 下载优化的几何属性还有其他选择吗?
  2. FORGE VIEWER seems to take SVF fileformat as input. FORGE VIEWER似乎将SVF文件格式作为输入。 Is SVF a recommended file format for custom made webGL viewers and is there any documentation available on SVF? SVF是否是自定义WebGL查看器的推荐文件格式,并且SVF上有任何可用的文档吗?

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.

相关问题 Autodesk Forge-模型衍生API:Revit到.obj(基本) - Autodesk Forge - Model Derivative API: Revit to .obj (Basics) Autodesk Model Derivative API生成的OBJ文件中的几何单位是什么? - What is the geometry unit in OBJ files generated by Autodesk Model Derivative API? Autodesk Forge model 衍生清单 api - Autodesk Forge model derivative manifest api 如何在 Autodesk Forge 的 Model 衍生品 API 中找到 AutoCAD 文件上的“关闭”数量? - How can I find the number of “closures” on an autocad files in autodesk forge's Model Derivative API? Autodesk Forge Model Derivative API中的体积,面积和长度值 - Values for volume, area and length in Autodesk Forge Model Derivative API Autodesk Forge Model 衍生 API - 类型和距离参数 - Autodesk Forge Model Derivative API - type and istance parameters Autodesk Forge Model 衍生品 API - 可在python 续传 - Autodesk Forge Model derivative API - resumable upload in python Autodesk Forge Model Derivative API:在 Autodesk Forge 衍生子项中找不到“图形”角色 - Autodesk Forge Model Derivative API: Can't not find 'graphics' role in autodesk forge derivatives children 如何将 Autodesk Model Derivative API 元数据中的 objectids 与 Forge Viewer 模型 dbids 匹配? - How to match objectids from Autodesk Model Derivative API metadata with Forge Viewer model dbids? 无法使用 Autodesk Model 衍生 API 翻译某些文件 - Can not translate some files with Autodesk Model Derivative API
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM