meshing.edge_detection.find_crossing_edges

meshing.edge_detection.find_crossing_edges(values, *, level=0.0)

Find every lattice edge whose endpoints lie on opposite sides of level.

A vertex with value - level exactly zero counts as outside, matching the sign convention used during root refinement.

Parameters

Name Type Description Default
values np.ndarray Lattice values shaped (nx + 1, ny + 1, nz + 1). required
level float Isovalue to extract. 0.0

Returns

Name Type Description
CrossingEdges The crossing edge set, ordered by axis and then by lattice index.