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

Method get_mesh_name_from_shape

src/bonsai/bonsai/tool/loader.py:87–89  ·  view source on GitHub ↗
(cls, geometry: ifcopenshell.geom.ShapeType)

Source from the content-addressed store, hash-verified

85
86 @classmethod
87 def get_mesh_name_from_shape(cls, geometry: ifcopenshell.geom.ShapeType) -> str:
88 representation_id = cls.get_representation_id_from_shape(geometry)
89 return cls.get_mesh_name(tool.Ifc.get().by_id(representation_id))
90
91 @classmethod
92 def get_mesh_name(cls, representation: ifcopenshell.entity_instance) -> str:

Callers 8

create_productMethod · 0.80
create_curveMethod · 0.80
create_meshMethod · 0.80
_executeMethod · 0.80
create_cameraMethod · 0.80

Calls 4

get_mesh_nameMethod · 0.80
by_idMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected