Modules.ProbabilisticMarchingTetrahedra package
Submodules
Modules.ProbabilisticMarchingTetrahedra.probabilistic_marching_tetrahedra module
- Modules.ProbabilisticMarchingTetrahedra.probabilistic_marching_tetrahedra.probabilistic_marching_tetrahedra(points, F, tetrahedra, isovalue, cross_prob=None, opacity='linear', cmap='viridis', plotter=None)[source]
Visualize the probabilistic marching tetrahedra result using PyVista.
Parameters:
- Fnp.ndarray
2D array of shape (n_points, n_ens) representing the scalar field with ensemble members.
- tetrahedranp.ndarray
2D array of shape (n_tetrahedra, 4) representing the tetrahedralization of the points.
- isovaluefloat
The isovalue for which to compute the isosurface.
- cross_probnp.ndarray, optional
3D array of shape (n_x-1, n_y-1, n_z-1) with probabilities of isosurface presence in each cell. If None, it will be computed using probabilistic_marching_tetrahedra function.
- opacitystr or list, optional
Opacity mapping for the volume rendering. Default is ‘linear’.
- cmapstr, optional
Colormap for the volume rendering. Default is ‘viridis’.
Returns:
- plotterpyvista.Plotter
The pyvista plotter with the visualized probabilistic isosurface.
Modules.ProbabilisticMarchingTetrahedra.probabilistic_marching_tetrahedra_stats module
Modules.ProbabilisticMarchingTetrahedra.probabilistic_marching_tetrahedra_vis module
- Modules.ProbabilisticMarchingTetrahedra.probabilistic_marching_tetrahedra_vis.pyvista_probabilistic_marching_tetrahedra_vis(points, tetrahedra, isovalue, cross_prob=None, opacity='linear', cmap='viridis', plotter=None)[source]
Visualize the probabilistic marching tetrahedra result using PyVista.
Parameters:
- tetrahedranp.ndarray
2D array of shape (n_tetrahedra, 4) representing the tetrahedralization of the points.
- isovaluefloat
The isovalue for which to compute the isosurface.
- cross_probnp.ndarray, optional
3D array of shape (n_x-1, n_y-1, n_z-1) with probabilities of isosurface presence in each cell. If None, it will be computed using probabilistic_marching_tetrahedra function.
- opacitystr or list, optional
Opacity mapping for the volume rendering. Default is ‘linear’.
- cmapstr, optional
Colormap for the volume rendering. Default is ‘viridis’.
Returns:
- plotterpyvista.Plotter
The pyvista plotter with the visualized probabilistic isosurface.
Module contents
ProbabilisticMarchingTetrahedra Module This module provides functionality for performing probabilistic marching tetrahedra on 3D datasets with uncertainty. It includes methods for calculating cell crossing probabilities and visualizing the results using pyvista.