nx_slice_contour_test.nx
buildroot/runtime/nx_slice_contour_test.nx
about
nx_slice_contour_test.nx -- end-to-end: tetrahedron mesh ->
BVH -> slice at midplane -> contour assembly. Verifies the
3 segments produced by nx_slice_plane_smoke get linked into
exactly 1 closed polygon (the right triangle at z=0.5mm).
Closed-form invariants:
(a) Contours verdict == OK (every contour closed).
(b) Exactly 1 polygon emitted.
(c) n_open == 0.
(d) Polygon has exactly 3 vertices (= 3 segments forming a
closed triangle).
(e) The vertex set equals {(0,0), (8192,0), (0,8192)} (any
cyclic order accepted).
(f) Polygon is well-formed: nx_polygon_signed_2area_q28 != 0
(non-degenerate triangle).
expect_exit: 0
license_tier: ORIGINAL
dependencies 7 imports · 0 importers
imports: nx_syscalls.nxnx_mesh.nxnx_mesh_print_check.nxnx_bvh.nxnx_slice_plane.nxnx_polygon.nxnx_slice_contour.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
| 28 | const Q14_ONE: i64 = 16384 |
| 29 | const Q14_HALF: i64 = 8192 |
functions
| 32 | func smoke_has_vert(p: *NxPolygon, x: i64, y: i64) -> i64 |
| 43 | func main() -> i64 |