uvisbox.Modules.ProbabilisticMarchingTetrahedra.probabilistic_marching_tetrahedra

Module Contents

uvisbox.Modules.ProbabilisticMarchingTetrahedra.probabilistic_marching_tetrahedra.probabilistic_marching_tetrahedra(ensemble_data, tetrahedral_mesh, points, isovalue, plotter=None, opacity='linear', colormap='viridis')[source]

Compute and visualize probabilistic marching tetrahedra.

This function implements the complete stats->mesh->vis pipeline for probabilistic marching tetrahedra visualization. It calculates the probability of isosurface presence in each tetrahedron and creates a PyVista volume rendering visualization.

Parameters:
  • ensemble_data (np.ndarray) – 2D array of shape (n_points, n_ensemble) where each column is a realization and each row corresponds to a vertex in the tetrahedral mesh.

  • tetrahedral_mesh (np.ndarray) – 2D array of shape (n_tetrahedra, 4) representing the tetrahedralization of the points.

  • points (np.ndarray) – 2D array of shape (n_points, 3) with point coordinates.

  • isovalue (float) – The isovalue for which to compute the isosurface.

  • plotter (pyvista.Plotter, optional) – An existing PyVista plotter to add the volume rendering to. If None, a new plotter is created.

  • opacity (str or list, optional) – Opacity mapping for the volume rendering. Default is ‘linear’.

  • colormap (str, optional) – Colormap for the volume rendering. Default is ‘viridis’.

Returns:

plotter – The pyvista plotter with the visualized probabilistic isosurface.

Return type:

pyvista.Plotter