meshing.edge_detection.detect_edges

meshing.edge_detection.detect_edges(
    sdf,
    grid,
    *,
    level=0.0,
    bisection_iterations=16,
    newton_steps=1,
)

Sample, detect crossing edges, and refine Hermite data in one call.

Detection uses concrete values, so this convenience entry point cannot run under a JAX transformation. Inside jax.grad, call :func:edge_hermite_data with a previously detected edge set instead.