code wiki / (root) / nx_mesh_edit_test.nx

nx_mesh_edit_test.nx

buildroot/runtime/nx_mesh_edit_test.nx

4133 B82 linesdepth 6pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic mesh
docsdependenciesstructsconstsfunctions

about

nx_mesh_edit_test.nx -- KAT gate for the DCC modeling verbs. Closed-form invariants only (no external oracle needed -- these are exact integer ops): translate shifts the AABB, scale shrinks it, subdivide quadruples triangles while preserving the AABB + validity, pyramid factory has the right counts + extent. expect_exit: 0.

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_mesh.nx nx_mesh_edit.nx nx_mesh_edit_test.nx

imports: nx_syscalls.nxnx_mesh.nxnx_mesh_edit.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap w sys_write nx_mesh_make_cube nx_mesh_alloc sys_mmap ↻ nx_mesh_set_vertex nx_mesh_set_uv nx_mesh_set_triangle nx_mesh_aabb nx_mesh_get_vertex_x nx_mesh_get_vertex_y nx_mesh_get_vertex_z chk w ↻ eqi nx_mesh_translate nx_mesh_scale_rat nx_mesh_validate nx_mesh_subdivide nx_mesh_alloc ↻ nx_mesh_set_vertex ↻ nx_mesh_get_vertex_x ↻ nx_mesh_get_vertex_y ↻ nx_mesh_get_vertex_z ↻ nx_mesh_get_color nx_mesh_set_triangle ↻ wn sys_mmap ↻ sys_write ↻ nx_mesh_make_pyramid nx_mesh_alloc ↻ nx_mesh_set_vertex ↻ nx_mesh_set_triangle ↻

structs

none

consts

none

functions

11func w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 2: chkmain calls 1: sys_write
12func wn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
21func chk(cond: i64, pass: *i64, fail: *i64, label: *u8) -> i64
called by 1: main calls 1: w
26func eqi(a: i64, b: i64) -> i64 { if a == b { return 1 } return 0 }
called by 1: main
28func main() -> i64