Function pcms::omega_h::intersectTargets
Defined in File mesh_intersection.hpp
Function Documentation
-
IntersectionResults pcms::omega_h::intersectTargets(const OmegaHGeometry &source, Omega_h::Mesh &target_mesh, bool use_prefilter = true)
Computes source-target element intersections for conservative projection.
For each target element in the target mesh, this function identifies source elements from the source mesh that geometrically intersect with it using an adjacency-based breadth-first search strategy. The result is returned as a compact mapping.
Note
The intersection test is done using 2D polygon intersection routines from r3d. Only valid (non-degenerate) polygonal intersections are included.
- Parameters:
source – geometry of the source mesh; its search locates the source element containing each target centroid
target_mesh – The target Omega_h mesh.
use_prefilter – if true, skip degenerate clips
- Throws:
pcms_error – if the source geometry’s mesh and the target mesh differ in dimension
- Returns:
An IntersectionResults struct containing target-to-source mapping data.