Expand description
Helpers shared by unstructured-grid formats: intermediate grid spacing and sphere nearest-point lookup.
Structs§
- Sphere
Index - Nearest-point lookup on the unit sphere, so distances stay true near the poles.
Queries farther than the mesh’s local spacing from every mesh point return
None.
Constants§
- DEFAULT_
INTERMEDIATE_ SPACING_ DEG - INTERMEDIATE_
SPACING_ ENV - Cell size of the intermediate regular grid, in degrees.
- MIN_
REFINED_ SPACING_ DEG - Finest sample spacing a zoomed view may request, in degrees.
- ZOOM_
REFINE_ ENV - Opt-in flag: zoomed views sample a finer grid than the global spacing.
Functions§
- parse_
intermediate_ spacing - Parse the intermediate grid spacing;
Noneor a blank value selects the default. - parse_
zoom_ refine - Only truthy values enable zoom refinement; unset or other values leave it off.
- refinement_
factor - Largest per-axis subdivision whose samples fit the global grid’s cell budget.