code wiki / _hdl_build / nx_meshseg3d_gate.nx

nx_meshseg3d_gate.nx

buildroot/runtime/_hdl_build/nx_meshseg3d_gate.nx

4805 B99 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_meshseg3d_gate.nx -- benchmark 3D part segmentation (cadtwin P2). Known meshes -> correct segment count: CONNECTIVITY (2 separate boxes -> 2 parts), CREASE split (1 box, cos>0.5 -> 6 faces), CREASE merge (1 box, cos>-0.9 -> 1 part), DATA-DRIVEN threshold controls granularity, determinism. Segment = decompose a scanned mesh into parts for per-part analysis. expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_meshseg3d.nx nx_meshseg3d_gate.nx

imports: nx_meshseg3d.nx

imported by: nobody (leaf or entry point)

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

main sg_puts m3_bytes m3_init m3_hdr m3_box m3_add_vert m3_hdr ↻ m3_vert m3_add_tri m3_hdr ↻ m3_tri m3_hdr ↻ ms_segment m3_hdr ↻ mtk_face_normal m3_tri ↻ m3_vert ↻ mtk_isqrt ms_adjacent m3_tri ↻ sg_putn sg_puts ↻ sg_tooth sg_puts ↻

structs

none

consts

none

functions

7func sg_puts(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 3: sg_putnsg_toothmain
8func sg_putn(v: i64) -> i64
called by 1: main calls 1: sg_puts
21func sg_tooth(name: *u8, pass: i64, fails: *i64) -> i64
called by 1: main calls 1: sg_puts
29func main() -> i64