code wiki / (root) / nx_cube_to_gcode_test.nx

nx_cube_to_gcode_test.nx

buildroot/runtime/nx_cube_to_gcode_test.nx

3959 B87 linesdepth 13pulls 36 transitivereach 0 importersview sourcekind gate/prooftopic cube
docsdependenciesstructsconstsfunctions

about

nx_cube_to_gcode_test.nx -- MODEL->PRINT CAPSTONE: geometry I created (nx_stl_write_cube) -> existing nx_stl_load_binary -> existing QIDI slicer (nx_slice_pipe_run_v2) -> real G-code. Proves the DCC-export side feeds the whole existing fabrication pipeline end-to-end, all sovereign, no dup. expect_exit: 0.

dependencies 8 imports · 0 importers

nx_syscalls.nx nx_mesh.nx nx_stl.nx nx_stl_write.nx nx_machine_graph.nx nx_material_profile.nx nx_gcode_emit.nx nx_slice_pipeline.nx nx_cube_to_gcode_test.nx

imports: nx_syscalls.nxnx_mesh.nxnx_stl.nxnx_stl_write.nxnx_machine_graph.nxnx_material_profile.nxnx_gcode_emit.nxnx_slice_pipeline.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_stl_write_cube sys_mmap ↻ nx_le_write_u32 sw_put_vert nx_le_write_u32 ↻ f32_from_i64 nx_le_write_u16 chk w ↻ nx_stl_load_binary sys_mmap ↻ nx_stl_is_ascii nx_le_read_u32 nx_mesh_alloc sys_mmap ↻ nx_stl_next_pow2 nx_hash_new nx_fp32_bytes_to_q14 nx_fp32_bits_to_q14 nx_stl_intern_vertex nx_stl_pack_xyz nx_le_write_u64 nx_le_write_u32 ↻ nx_hash_fnv1a_bytes nx_hash_has nx_hash_probe nx_hash_fnv1a_i64 nx_hash_get nx_hash_probe ↻ nx_mesh_get_vertex_x nx_mesh_get_vertex_y nx_mesh_get_vertex_z nx_mesh_set_vertex nx_hash_put nx_hash_probe ↻ nx_mesh_set_triangle

structs

none

consts

none

functions

16func 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
17func wn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
26func smoke_count(buf: *u8, len: i64, needle: *u8) -> i64
called by 1: main
38func chk(cond: i64, pass: *i64, fail: *i64, label: *u8) -> i64
called by 1: main calls 1: w
44func main() -> i64