【发布时间】:2021-09-18 08:50:00
【问题描述】:
当我尝试在查看器中为 SVF2 转换的 BIM 模型加载 SVF2 环境时,房间没有出现。
SVF 2 图片:SVF2 Viewer with rooms unhidden SVF 图片:Viewer that has room volumes
应用了 skipHiddenFragments:False : SVF2 With Fragment Override
【问题讨论】:
标签: autodesk-viewer
当我尝试在查看器中为 SVF2 转换的 BIM 模型加载 SVF2 环境时,房间没有出现。
SVF 2 图片:SVF2 Viewer with rooms unhidden SVF 图片:Viewer that has room volumes
应用了 skipHiddenFragments:False : SVF2 With Fragment Override
【问题讨论】:
标签: autodesk-viewer
有几个原因可能会导致此行为。
// 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);
v7.52 之前,使用 Forge 查看器加载 SVF2 视图时,房间默认隐藏。要使房间可见,您需要将 skipHiddenFragments: false 设置为 viewer.loadDocumentNode
await this.viewer.loadDocumentNode(
doc,
masterViewBubble,
{
skipHiddenFragments: false
}
);
9 月 17 日更新:使用 v7.52 及更高版本,我们只需要确保加载主视图气泡即可查看 Revit 的房间。
await this.viewer.loadDocumentNode(
doc,
masterViewBubble
);
参考:https://github.com/Autodesk-Forge/forge-bim360-assets.viewer#troubleshooting
Revit Area and Volume Computations 不是Areas and Volumes:https://stackoverflow.com/a/67775385/7745569
【讨论】:
skipHiddenFragments 对于 SVF 默认值为 false,但对于 SVF2,此值为 true。因此,使用 SVF2 查看时需要将skipHiddenFragments 设置为 false。
forge[DOT]help[AT]autodesk[DOT]com 提供一个展示此问题的非机密可重现模型?需要从我们这边调查模型和测试,看看发生了什么。否则,我的想法就用完了……