uvisbox.Modules.ProbabilisticMarchingCubes.probabilistic_marching_cubes_vis
Module Contents
- uvisbox.Modules.ProbabilisticMarchingCubes.probabilistic_marching_cubes_vis.visualize_probabilistic_marching_cubes(mesh_data, plotter=None, opacity='linear', colormap='viridis')[source]
Visualize probabilistic marching cubes using PyVista volume rendering.
This function creates a 3D visualization of the crossing probabilities using PyVista’s volume rendering capabilities.
- Parameters:
mesh_data (np.ndarray) – 3D array of shape (n_z-1, n_y-1, n_x-1) with probabilities of isosurface presence in each cell.
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