uvisbox.Modules.UncertaintyLobes.uncertainty_lobes_mesh
Mesh generation for uncertainty lobes.
This module builds wedge-shaped mesh geometry for uncertainty lobe visualization:
Create wedge vertices for each lobe.
Triangulate wedge faces.
Support dual-lobe rendering (inner and outer).
Module Contents
- uvisbox.Modules.UncertaintyLobes.uncertainty_lobes_mesh.uncertainty_lobes_mesh(positions, stats, scale=0.2, arc_resolution=20)[source]
Build uncertainty lobe mesh from statistics.
Creates wedge-shaped glyphs with: 1. Outer lobe (percentile1 - larger angular and magnitude spread) 2. Inner lobe (percentile2 - smaller spread, optional) 3. Median arrow direction
- Parameters:
positions (numpy.ndarray) – Shape (n, 2) - lobe center positions
stats (dict) – From uncertainty_lobes_summary_statistics()
scale (float) – Glyph scale factor (default: 0.2)
arc_resolution (int) – Number of points per wedge arc (default: 20)
- Returns:
mesh – Contains
wedgesfor outer lobes,inner_wedgesfor optional inner lobes, andarrowswith position, direction, and length arrays.- Return type:
dict