tqec.interop.collada.write_block_graph_to_dae_file#
- write_block_graph_to_dae_file(block_graph: BlockGraph, file_like: str | Path | BinaryIO, pipe_length: float = 2.0, pop_faces_at_direction: SignedDirection3D | None = None, custom_face_colors: Mapping[FaceKind, RGBA] | None = None, show_correlation_surface: CorrelationSurface | None = None) None [source]#
Write the block graph to a Collada DAE file.
- Parameters:
block_graph – The block graph to write.
file – The output file path or file-like object that supports binary write.
pipe_length – The length of the pipes. Default is 2.0.
pop_faces_at_direction – Remove the faces at the given direction for all the blocks. This is useful for visualizing the internal structure of the blocks. Default is None.
custom_face_colors – A mapping from the face kind to the RGBA color to override the default face colors.
show_correlation_surface – The correlation surface to show in the block graph. Default is None.