对象导出:模型的隐藏实体正在导出(它们不应该导出)

发布于 2025-01-17 07:11:52 字数 481 浏览 4 评论 0原文

您好,我们正在尝试从 forge 查看器导出保存的视图。

当尝试导出包含隐藏实体的视图时,我们发现隐藏实体不会从导出中删除,并且整个模型会按原样导出。

我们还尝试在邮递员中通过仅提供模型中可见实体的 dbId 来执行此操作。结果是相同的,整个模型都被导出,而不是仅导出非隐藏实体。

我们使用 Forge 模型衍生 API 来执行此操作 - https://forge.autodesk.com/en/docs/model-derivative/v2/tutorials/translate-to-obj/

查看器中的隐藏实体

Hi we are trying to export a saved view from the forge viewer.

When trying to export a view with hidden entities we find that the hidden entities do not get removed from the export and the entire model gets exported as it is.

We also tried doing this in postman by only giving the dbIds of entities visible in the model. The results were same, entire model got exported instead of only the non-hidden entities.

We are doing this using the forge model derivatives API- https://forge.autodesk.com/en/docs/model-derivative/v2/tutorials/translate-to-obj/

Hidden entities in viewer

Model after export

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夕色琉璃 2025-01-24 07:11:53

要在OBJ中提取几何图形,您可以按照以下步骤操作:提取几何图形
正如您所看到的,您可以在数据提取中指定您想要的dbids

提取完成后,检查清单,您将获得所有 OBJ 文件,其中包含提取的 dbids 列表,如下所示:

{
   "modelGuid": "b90bbb37-d60e-412c-aedc-bf8c049f0dc7",
   "urn": "urn:adsk.viewing:fs.file:URL_SAFE_URN_OF_SOURCE_FILE/output/geometry/b576231b-9684-3609-8fa0-1221a424a77c.mtl",
   "role": "obj",
   "guid": "fed3c1b1-3c99-34d1-81f1-79f6fea72576",
   "type": "resource",
   "objectIds": [
        4,
        5
   ],
   "status": "success"
}

To extract geometry in OBJ you can follow this : Extract Geometry
As you can see, you can specify dbids you want in your extract.

After the extraction is done, check the manifest and you will get all OBJ files with the list of extracted dbids like this :

{
   "modelGuid": "b90bbb37-d60e-412c-aedc-bf8c049f0dc7",
   "urn": "urn:adsk.viewing:fs.file:URL_SAFE_URN_OF_SOURCE_FILE/output/geometry/b576231b-9684-3609-8fa0-1221a424a77c.mtl",
   "role": "obj",
   "guid": "fed3c1b1-3c99-34d1-81f1-79f6fea72576",
   "type": "resource",
   "objectIds": [
        4,
        5
   ],
   "status": "success"
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文