首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Autodesk Forge Viewer :使用SVF2时房间体积不可见

Autodesk Forge Viewer :使用SVF2时房间体积不可见
EN

Stack Overflow用户
提问于 2021-07-08 03:53:02
回答 1查看 133关注 0票数 0

当我尝试在查看器中加载SVF2转换的SVF2模型的BIM卡环境时,房间不显示。

SVF2图片:SVF2 Viewer with rooms unhidden SVF图片:Viewer that has room volumes

已应用skipHiddenFragments:False:SVF2 With Fragment Override

EN

回答 1

Stack Overflow用户

发布于 2021-07-09 11:59:54

有几个原因可能会导致这种行为。

对于

  • Revit,只有主视图具有房间几何图形,因此您需要在
  1. 查看器中加载主视图才能查看房间。

代码语言:javascript
复制
// Method 1
bubbleNode.getDefaultGeometry(true); //!<<< get first master view
// ref: https://github.com/Autodesk-Forge/forge-dataviz-iot-react-components/blob/main/client/components/Viewer.jsx#L156

// Method 2
const root = viewerDocument.getRoot();
const viewables = root.search({'type':'geometry', 'role': '3d'});
console.log('Viewables:', viewables);
const phaseViews = viewables.filter(v => v.data.name === v.data.phaseNames && v.getViewableRootPath().includes('08f99ae5-b8be-4f8d-881b-128675723c10'));
console.log('Master Views:', phaseViews);

  1. 在Viewer v7.52之前,当使用Forge viewer加载SVF2视图时,房间默认处于隐藏状态。要使文件室可见,需要将viewer.loadDocumentNode

设置为skipHiddenFragments: false

代码语言:javascript
复制
await this.viewer.loadDocumentNode(
    doc,
    masterViewBubble,
    {
        skipHiddenFragments: false
    }
);

更新9月17:使用v7.52及更高版本时,我们只需确保载入主视图编号即可查看Revit的房间。

代码语言:javascript
复制
await this.viewer.loadDocumentNode(
    doc,
    masterViewBubble
);

参考:https://github.com/Autodesk-Forge/forge-bim360-assets.viewer#troubleshooting

https://stackoverflow.com/a/67775385/7745569:The

  1. The Revit Area and Volume Computations is not Areas and Volumes
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68292273

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档