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

Function build_camera

src/bcf/bcf/v2/visinfo.py:368–378  ·  view source on GitHub ↗

Return a BCF camera for an IFC element placement matrix. Args: elem_placement: The IFC element placement as a rototranslation matrix. Returns: The BCF camera definition.

(elem_placement: NDArray[np.float64])

Source from the content-addressed store, hash-verified

366
367
368def build_camera(elem_placement: NDArray[np.float64]) -> mdl.PerspectiveCamera:
369 """
370 Return a BCF camera for an IFC element placement matrix.
371
372 Args:
373 elem_placement: The IFC element placement as a rototranslation matrix.
374
375 Returns:
376 The BCF camera definition.
377 """
378 return build_camera_from_vectors(*camera_vectors_from_element_placement(elem_placement))
379
380
381def build_camera_from_vectors(

Callers 1

build_viewpointFunction · 0.70

Tested by

no test coverage detected