【问题标题】:Is it possible to load only one specific object from the model(document) when initializing the document in the Forge viewer?在 Forge 查看器中初始化文档时,是否可以从模型(文档)中仅加载一个特定对象?
【发布时间】:2019-06-13 10:40:59
【问题描述】:

我们想知道是否可以将查看器初始化为仅呈现特定的对象 ID。

有一个从模型中提取几何的教程,但它涉及使用导数将几何转换为 OBJ。 https://forge.autodesk.com/en/docs/model-derivative/v2/tutorials/extract-geometry-from-source-file/

这个想法是根据模型(文档)中的元素创建对象目录。我们通常使用 Revit 文件。

【问题讨论】:

    标签: autodesk-forge


    【解决方案1】:

    查看器与 dbIds(或等效于 objectIds 的 nodeIds)一起使用,并且可以基于选择性地加载气泡(几何构造) - 请参阅实时示例 here

    viewer.loadModel(svfUrl,{ids:[dbIds...]})
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-10-22
      • 2019-12-03
      • 2019-08-05
      • 1970-01-01
      • 2018-11-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多