CAD Utilities
Overview
Helpers for visualizing STL assets through the drcutils.viz namespace.
API Reference
CAD helpers for STL visualization.
- drcutils.viz.cad.visualize_stl(filepath, color='#ffffff')[source]
Visualize an STL mesh as a Plotly figure.
- Parameters:
filepath – Path to the STL file.
color – Hex color used for mesh shading.
- Returns:
A Plotly figure containing a single
Mesh3dtrace.- Raises:
ImportError – If Plotly is not installed.