3

目前,我在 IFC 模型中使对象可见时遇到问题。example_shape我用 PythonOCC [1]创建了一个名为 的形状。此形状在我的 IfcOpenShell 3D 查看器中以所需颜色显示 [2]。现在我希望这example_shape在具有特定属性集的新导出 IFC 模型中也可见。我找不到有关此主题的任何有用信息。

# [1]
example_shape = OCC.BRepAlgoAPI.BRepAlgoAPI_Common(extrusion_Surface, element_shape).Shape()

# [2]
fill = OCC.Quantity.Quantity_Color(r, g, b, OCC.Quantity.Quantity_TOC_RGB)
ifcopenshell.geom.utils.display_shape(example_shape, clr=fill)

我尝试了不同的方式,但没有好的或想要的输出。这里有没有人曾经遇到过同样的问题?

4

0 回答 0