示例描述與操作指南
以住房類模型爲例,將所選構件類突出顯示,將其他構件類透明化。本示例默認選中 IfcFlowSegment 類型構件。其它常用的構件類型還有 IfcDoor,IfcFlowController,IfcRailing,IfcSlab,IfcFlowFitting 等。
使用接口transparentOtherComponentsByKey、clearHighlightList實現。
示例效果展示
實現步驟
通過接口transparentOtherComponentsByKey、clearHighlightList實現。
// 點擊運行觸發的函數
const run = () =>{
viewer3D.transparentOtherComponentsByKey(defaultCk); //反選透明
viewer3D.clearHighlightList(); // 清除高亮
}