Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 112 additions & 0 deletions nbs/mesh_viewer.ipynb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ select = ["ALL"]
"SLF001", # private-member-access
"T201", # print
]
"src/gsim/common/viz/render3d_threejs.py" = [
"E501", # line-too-long (embedded HTML/JS template)
]
"docs/hooks.py" = [
"ARG001", # unused-function-argument (MkDocs hooks require specific signatures)
"INP001", # implicit-namespace-package
Expand Down
3 changes: 3 additions & 0 deletions src/gsim/common/viz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
3D backends:
- PyVista (desktop, ``plot_prisms_3d``)
- Open3D + Plotly (Jupyter, ``plot_prisms_3d_open3d``)
- Three.js (Jupyter, ``plot_mesh_threejs`` — zero-dep inline HTML)

2D backends:
- matplotlib (``plot_prism_slices``)
Expand All @@ -18,10 +19,12 @@
plot_prisms_3d,
plot_prisms_3d_open3d,
)
from gsim.common.viz.render3d_threejs import plot_mesh_threejs

__all__ = [
"create_web_export",
"export_3d_mesh",
"plot_mesh_threejs",
"plot_prism_slices",
"plot_prisms_3d",
"plot_prisms_3d_open3d",
Expand Down
Loading
Loading