趣味百科

当前位置首页 > 百科 > 趣味百科

三维模型中的办公区模型如何高亮

以小红砖开放平台中的以办公区模型为例,高亮选中的构件类,本示例默认选中IfcFurnishingElement类型构件组。其它常用的构件类型还有IfcDoor、IfcWindow、IfcRailing、IfcSlab、IfcWall、IfcWallStandardCase等。点击“运行”按钮,可看到效果。

实现步骤

1

本示例默认选中IfcFurnishingElement类型构件组。

所需代码:

constcomponentKeys=component.getKeys();constcomponentFilterKeys=component.filterKeyByType(componentKeys,"IfcFurnishingElement");component.setHighlight(componentFilterKeys);