1

我浏览了一篇研究论文“Applying Novelity detection to identify model element to IFC class misclassifications on architecture and Infrastructure Building Information Models”,发表在 Journal of Computational Design and Engineering (2018) 上,该论文从 IFC 文件中提取数据进行分析。我能够使用 IfcOpenShell 和 pythonOCC 提取面积、体积和回转。如何从本文中提到的 Ifc 元素的顶部和底部提取方向?

我使用此处给出的示例来提取 Ifc 实体的方向。

import ifcopenshell
import ifcopenshell.geom

ifc_file = ifcopenshell.open('Duplex_A_20110907_optimized.ifc')

# Settings to specify usage of pyOCC
settings = ifcopenshell.geom.settings()
settings.set(settings.USE_PYTHON_OPENCASCADE, True)

walls = ifc_file.by_type("IfcWall")

shape = ifcopenshell.geom.create_shape(settings, walls[0])
orientation = shape.geometry.Orientation()
print(orientation)

我得到所有 Ifc 实体的“0”。看来我调用了错误的函数来获取方向。

4

0 回答 0