示例描述與操作指南
以住房類模型爲例,隱藏選定的構件類,本示例默認選中 IfcFurnishingElement 類型構件組。其它常用的構件類型還有 IfcDoor、IfcWindow、IfcRailing、IfcSlab、IfcWall、IfcWallStandardCase 等。
通過接口hideComponentsByKey來實現。
示例效果展示
實現步驟
通過接口hideComponentsByKey來實現。
// 點擊運行觸發的函數
const run = () =>{
viewer3D.hideComponentsByKey(defaultCk); //構件隱藏
}