|
Wildmeshing Toolkit
|
Functions | |
| _split_surfaces (msh_path, sel_a, sel_b) | |
| float | min_separation_3d (msh_path, sel_a, sel_b) |
| interface_polyline_2d (msh_path, selection) | |
| float | roughness_2d (coords, edges) |
| float | polyline_length (coords, edges) |
| signed_volumes (msh_path) | |
Geometry measurements used by the tests: body-to-body separation, 2D interface roughness/length, and element-inversion checks.
|
protected |
Extract the two selected surfaces; returns (coords, faces_a, faces_b) with faces as (n,3) global-index triangle arrays (3D only).
| geo.interface_polyline_2d | ( | msh_path, | |
| selection | |||
| ) |
Return (coords (n,2), edges (m,2) global indices) of a 2D interface.
| float geo.min_separation_3d | ( | msh_path, | |
| sel_a, | |||
| sel_b | |||
| ) |
Minimum vertex-to-surface distance between the two selected surfaces (checked in both directions). Exact for flat facing surfaces; a tight upper bound in general.
| float geo.roughness_2d | ( | coords, | |
| edges | |||
| ) |
Total turning of the interface: sum over 2-valent nodes of |pi - angle between incident edges|. A straight line scores 0.
| geo.signed_volumes | ( | msh_path | ) |
Signed volumes (3D tets) or signed areas (2D triangles) of every primitive, deduplicated across multi-tag copies, in a stable order (sorted vertex tuples). Comparing signs pre/post detects inversions.