read_block_graph_from_dae_file#
- tqec.interop.read_block_graph_from_dae_file(filepath, graph_name='')[source]#
Read a Collada DAE file and construct a
BlockGraph
from it.- Parameters:
filepath (str | Path) – The input dae file path.
graph_name (str) – The name of the block graph. Default is an empty string.
fix_shadowed_faces – Whether to fix the shadowed faces in the block graph. See
fix_shadowed_faces()
for more details. Default is True.
- Returns:
The constructed
BlockGraph
object.- Raises:
TQECException – If the COLLADA model cannot be parsed and converted to a block graph.
- Return type: