SuperAPI AI 工具集

ifc-impl-spatial-decomposition

通用与其它

查看项目

更新于 10-15 22:18

技能介绍

用途:这是 IFC 空间结构的写入侧工作流,用于在编写 IFC 文件时按正确顺序构建空间分解树、把每个物理构件放入树中,并验证没有构件成为孤儿。结构本身、错误恢复和整体编写顺序分别参见 ifc-core-spatial-structure、ifc-errors-spatial-structure、ifc-impl-authoring-file。

主要能力:给出七步分解流程——创建 IfcProject(上下文根,非空间节点)、自上而下创建 Site/Building/Storey/Space、用 IfcRelAggregates 逐父节点连线、创建物理构件、用 IfcRelContainedInSpatialStructure 放置每个构件、用 IfcRelReferencedInSpatialStructure 引用跨节点构件、最后校验。明确区分两种连线关系:IfcRelAggregates 连接空间节点与空间节点(RelatingObject 为父节点,RelatedObjects 为子节点集合);IfcRelContainedInSpatialStructure 把物理构件放入一个空间节点;IfcRelReferencedInSpatialStructure 把构件引用到额外节点。

必要用法与硬规则:必须先建节点再建指向它的关系;每个空间节点须用 IfcRelAggregates 连到父节点(WR41);每个物理构件须恰好放入一个节点(ContainedInStructure 为 SET [0:1]);不得用 IfcRelAggregates 放置物理构件,不得用 IfcRelContainedInSpatialStructure 嵌套空间节点(WR31);不得颠倒 Relating 与 Related;IfcProject 之上不得聚合。默认把构件放入 IfcBuildingStorey;跨楼层构件选主楼层包含、其余楼层引用。校验时统计每个 IfcElement 的包含关系数(1 为正常,0 为孤儿,大于 1 为模式非法),并沿 Decomposes 向上检查每个节点是否可达 IfcProject。

适用场景与版本:建筑与基础设施 IFC 编写。IFC2x3 与 IFC4 为 Project/Site/Building/Storey/Space 五级树,IFC2x3 中 CompositionType 与 OwnerHistory 必填,IFC4 起可选;IFC4.3 中 IfcBuilding 成为 IfcFacility 子类型,基础设施可用 IfcBridge、IfcRoad、IfcRailway、IfcMarineFacility 及 IfcFacilityPart 子类型,连线方式不变。

限制:资料未提供具体安装命令、收费或平台信息;references 目录下的 methods.md、examples.md、anti-patterns.md 内容未在资料中展开。