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)
| 349 | |
| 350 | |
| 351 | def 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 | |
| 368 | def build_camera(elem_placement: NDArray[np.float64]) -> mdl.PerspectiveCamera: |
no outgoing calls