Function pcms::intersectTargets(Omega_h::Mesh&, Omega_h::Mesh&, bool)
Defined in File mesh_intersection.hpp
Function Documentation
-
IntersectionResults pcms::intersectTargets(Omega_h::Mesh &source_mesh, 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_mesh – The source Omega_h mesh.
target_mesh – The target Omega_h mesh.
- Returns:
An IntersectionResults struct containing target-to-source mapping data.