基于threejs三维办公室如何显示线框化

示例描述与操作指南

以办公区类模型为例,对所选构件类进行线框化处理,本示例默认选中 IfcWallStandardCase 类型构件组。其它常用的构件类型还有 IfcDoor、IfcWindow、IfcRailing、IfcSlab、IfcFurnishingElement等。

通过接口wireFrameComponentsByKey来实现。

示例效果展示

在这里插入图片描述

实现步骤

通过接口wireFrameComponentsByKey来实现。

// 点击运行触发的函数
const run = () =>{
   viewer3D.wireFrameComponentsByKey(defaultCk);   //构件线框
}

下载完整代码

相关示例

构件线框

分类线框展示

住房类示例 - 线框

厂房类示例 - 线框

相关接口

getHighlightComponentsKey

resetScene

wireFrameComponentsByKey