uvisbox.Modules.ProbabilisticMarchingTetrahedra.probabilistic_marching_tetrahedra_vis

Module Contents

uvisbox.Modules.ProbabilisticMarchingTetrahedra.probabilistic_marching_tetrahedra_vis.visualize_probabilistic_marching_tetrahedra(mesh_data, points, tetrahedral_mesh, plotter=None, opacity='linear', colormap='viridis')[source]

Visualize probabilistic marching tetrahedra using PyVista volume rendering.

This function creates a 3D visualization of the crossing probabilities using PyVista’s volume rendering capabilities for tetrahedral meshes.

Parameters:
  • mesh_data (np.ndarray) – 1D array of shape (n_tetrahedra,) with probabilities of isosurface presence in each tetrahedron.

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

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

  • 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