hydromodpy.spatial.mesh.gmsh_grid.interactive_3d_viewer#

Optional PyVista-based interactive viewer for extruded 3D meshes.

This module intentionally stays above the mesh/discretization core. It only consumes ExtrudedPrismMesh3D and ExtrudedPrismMeshWithValues objects that already carry all geometry and cell-wise values needed for interactive QA.

Functions

add_bounds_axes(plotter)

Add basic bounds/axes aids to the active plotter.

add_clip_plane(plotter, grid, *[, normal, ...])

Clip the grid with one plane and add the clipped result.

add_layer_slice(plotter, grid, *, layer_index)

Extract one full layer and add it to the plotter.

add_threshold(plotter, grid, *, scalar_name, ...)

Threshold the grid on one scalar range and add the result.

add_vertical_exaggeration(grid, factor)

Return one copy of the grid with its Z coordinates scaled.

build_pyvista_grid(mesh_3d)

Convert one ExtrudedPrismMesh3D into a PyVista UnstructuredGrid.

build_pyvista_grid_with_values(...[, ...])

Convert one valued prism mesh into a PyVista grid with scalar metadata.

extract_prism_pick_info(mesh_with_values, ...)

Return metadata and the associated vertical profile for one picked prism.

extract_source_column_grid(mesh_with_values, ...)

Return the 3D column associated with one 2D source-cell index.

show_interactive_mesh_3d(mesh_3d, *[, ...])

Open one interactive PyVista viewer on the bare 3D mesh.

show_interactive_values_3d(mesh_with_values, *)

Open one interactive PyVista viewer on 3D prism values.

Classes

PrismPickInfo(prism_index, layer_index, ...)

Typed metadata for one picked prism in the interactive viewer.

SourceColumnSelection(source_cell_index, ...)

Typed description of one highlighted source column.