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

Function build_components

src/bcf/bcf/v2/visinfo.py:351–365  ·  view source on GitHub ↗

Return the BCF components from an IFC element GUID. Args: *guids: One or more selected IFC element GUID. Returns: The BCF components definition.

(*guids: str)

Source from the content-addressed store, hash-verified

349
350
351def build_components(*guids: str) -> mdl.Components:
352 """
353 Return the BCF components from an IFC element GUID.
354
355 Args:
356 *guids: One or more selected IFC element GUID.
357
358 Returns:
359 The BCF components definition.
360 """
361 components = [mdl.Component(ifc_guid=guid) for guid in guids]
362 return mdl.Components(
363 selection=mdl.ComponentSelection(component=components),
364 visibility=mdl.ComponentVisibility(default_visibility=True),
365 )
366
367
368def build_camera(elem_placement: NDArray[np.float64]) -> mdl.PerspectiveCamera:

Callers 4

test_massive_bcfFunction · 0.90
test_massive_bcfFunction · 0.90
build_viewpointFunction · 0.70

Calls

no outgoing calls

Tested by 2

test_massive_bcfFunction · 0.72
test_massive_bcfFunction · 0.72