uvisbox.Modules.ProbabilisticMarchingCubes.probabilistic_marching_cubes

Module Contents

uvisbox.Modules.ProbabilisticMarchingCubes.probabilistic_marching_cubes.probabilistic_marching_cubes(ensemble_images, isovalue, plotter=None, opacity='linear', colormap='viridis')[source]

Compute and visualize probabilistic marching cubes.

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

Parameters:
  • ensemble_images (np.ndarray) – 4D array of shape (n_z, n_y, n_x, n_ensemble) representing the scalar field with ensemble members.

  • 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