mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 06:52:39 +00:00
Uncomment use of get_edges_representation_item_ids
as build was updated awhile ago
This commit is contained in:
@@ -1006,11 +1006,7 @@ class Loader(bonsai.core.tool.Loader):
|
|||||||
else:
|
else:
|
||||||
edges = ifcopenshell.util.shape.get_edges(geometry)
|
edges = ifcopenshell.util.shape.get_edges(geometry)
|
||||||
mesh.from_pydata(verts.tolist(), edges.tolist(), [])
|
mesh.from_pydata(verts.tolist(), edges.tolist(), [])
|
||||||
# TODO: remove error handling after we update build in Bonsai.
|
edges_item_ids = ifcopenshell.util.shape.get_edges_representation_item_ids(geometry).tolist()
|
||||||
try:
|
|
||||||
edges_item_ids = ifcopenshell.util.shape.get_edges_representation_item_ids(geometry).tolist()
|
|
||||||
except AttributeError:
|
|
||||||
edges_item_ids = []
|
|
||||||
mesh["ios_edges_item_ids"] = edges_item_ids
|
mesh["ios_edges_item_ids"] = edges_item_ids
|
||||||
tool.Blender.Attribute.fill_attribute(mesh, "ios_edges_item_ids", "EDGE", "INT", edges_item_ids)
|
tool.Blender.Attribute.fill_attribute(mesh, "ios_edges_item_ids", "EDGE", "INT", edges_item_ids)
|
||||||
tool.Blender.Attribute.fill_attribute(mesh, "ios_material_ids", "EDGE", "INT", geometry.material_ids)
|
tool.Blender.Attribute.fill_attribute(mesh, "ios_material_ids", "EDGE", "INT", geometry.material_ids)
|
||||||
|
|||||||
Reference in New Issue
Block a user