uvisbox.Modules.UncertaintyLobes.uncertainty_lobes_mesh ======================================================= .. py:module:: uvisbox.Modules.UncertaintyLobes.uncertainty_lobes_mesh .. autoapi-nested-parse:: 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 --------------- .. py:function:: uncertainty_lobes_mesh(positions, stats, scale=0.2, arc_resolution=20) 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 :param positions: Shape (n, 2) - lobe center positions :type positions: numpy.ndarray :param stats: From uncertainty_lobes_summary_statistics() :type stats: dict :param scale: Glyph scale factor (default: 0.2) :type scale: float :param arc_resolution: Number of points per wedge arc (default: 20) :type arc_resolution: int :returns: **mesh** -- Contains ``wedges`` for outer lobes, ``inner_wedges`` for optional inner lobes, and ``arrows`` with position, direction, and length arrays. :rtype: dict