mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 11:43:53 +00:00
typing
This commit is contained in:
@@ -74,9 +74,6 @@ class Loader(bonsai.core.tool.Loader):
|
||||
def get_representation_id_from_shape(cls, geometry: ifcopenshell.geom.ShapeType) -> int:
|
||||
representation_id: str = geometry.id
|
||||
if "-" in representation_id:
|
||||
# Example: 2432-openings-2468, where
|
||||
# 2432 is mapped representation id
|
||||
# and 2468 is IFCRELVOIDSELEMENT
|
||||
representation_id = re.sub(r"\D", "", representation_id.split("-")[0])
|
||||
else:
|
||||
representation_id = re.sub(r"\D", "", representation_id)
|
||||
|
||||
Reference in New Issue
Block a user