nx_mesh_print_check_test.nx
buildroot/runtime/nx_mesh_print_check_test.nx
about
nx_mesh_print_check_test.nx -- exercise bbox + manifold check
on a synthetic tetrahedron and a deliberately broken mesh.
Closed-form invariants:
(a) Tetrahedron factory returns non-null mesh with 4 verts + 4 tris.
(b) Bbox of unit tetrahedron = (0,0,0) to (EDGE,EDGE,EDGE).
(c) Manifold check returns OK on the tetrahedron.
(d) Manifold check returns NOT_MANIFOLD when one triangle is
deleted (now 3 tris, three edges have no reverse partner).
(e) Existing nx_mesh_validate still accepts the tetrahedron
(no out-of-range indices).
expect_exit: 0
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_mesh.nxnx_mesh_print_check.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 19 | const EDGE_Q14: i64 = 16384 // 1.0 in Q14 |
functions
| 21 | func main() -> i64 |