示例描述与操作指南
以住房类模型为例,对某一特定构件类进行剖切操作,本示例默认选择 IfcFlowSegment 类型构件组。鼠标推动六个面进行剖切。其它常用的构件类型还有 IfcDoor、IfcWindow、IfcRailing、IfcSlab、IfcWall、IfcWallStandardCase 等。
通过接口enableSectionBox与isolateComponentsByKey实现。
示例效果展示
实现步骤
通过接口enableSectionBox与isolateComponentsByKey实现。
// 点击运行触发的函数
const run = () =>{
viewer3D.isolateComponentsByKey(defaultCk); //构件隔离
viewer3D.enableSectionBox(); //模型剖切
}