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