meshing.diagnostics.mesh_report

meshing.diagnostics.mesh_report(sdf, mesh, *, samples=2048, pairs=4096, seed=0)

Bundle every diagnostic into one report.

Runs :func:surface_deviation, :func:self_intersections, and :func:triangle_quality, and adds watertightness (every undirected edge shared by exactly two triangles) plus the Euler characteristic V - E + F over the vertices actually referenced by the faces (2 for a closed sphere-like surface).

Parameters

Name Type Description Default
sdf Callable[[Array], Array] Implicit field the mesh was extracted from. required
mesh Mesh The extracted mesh. required
samples int Forwarded to :func:surface_deviation. 2048
pairs int Forwarded to :func:self_intersections. 4096
seed int Forwarded to both sampled diagnostics. 0

Returns

Name Type Description
dict[str, Any] Dict with keys surface_deviation, self_intersections,
dict[str, Any] triangle_quality, watertight, and euler_characteristic.