MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / get_mesh_name

Method get_mesh_name

src/bonsai/bonsai/tool/loader.py:92–94  ·  view source on GitHub ↗
(cls, representation: ifcopenshell.entity_instance)

Source from the content-addressed store, hash-verified

90
91 @classmethod
92 def get_mesh_name(cls, representation: ifcopenshell.entity_instance) -> str:
93 context_id = context.id() if (context := getattr(representation, "ContextOfItems", None)) else 0
94 return "{}/{}".format(context_id, representation.id())
95
96 @classmethod
97 def get_name(cls, element: ifcopenshell.entity_instance) -> str:

Calls 2

formatMethod · 0.80
idMethod · 0.45

Tested by

no test coverage detected