display_collada_model#
- tqec.interop.display_collada_model(filepath_or_bytes, write_html_filepath=None)[source]#
Display the 3D COLLADA model from a Collada DAE file in IPython compatible environments, or write the generated HTML content to a file.
The implementation of this function references the code snippet from the
stim.Circuit().diagram()
method.- Parameters:
filepath_or_bytes (str | Path | bytes) – The input dae file path or bytes of the dae file.
write_html_filepath (str | Path | None) – The output html file path to write the generated html content. Default is None.
- Returns:
A helper class to display the 3D model, which implements the
_repr_html_
method and can be directly displayed in IPython compatible environments.- Return type:
_ColladaHTMLViewer