code wiki / (root) / nx_slice_pipe_v2_test.nx

nx_slice_pipe_v2_test.nx

buildroot/runtime/nx_slice_pipe_v2_test.nx

3490 B92 linesdepth 13pulls 30 transitivereach 0 importersview sourcekind gate/prooftopic slice
docsdependenciesstructsconstsfunctions

about

nx_slice_pipe_v2_test.nx -- verify the integrated slicer composes auto-supports + per-layer emission in a single call. SUPERIOR CAPABILITY proof (per 2026-05-20 cardinal): A single call produces G-code with auto-detected + LOAD-AWARE-SIZED supports. Industry slicers auto-detect supports but emit constant- diameter pillars; the integrated workflow industry can't do is the EXCEED axis. Closed-form invariants: (a) Null mesh -> negative verdict (b) Bad layer height -> negative verdict (c) Real cube mesh -> positive layer count returned (d) Output buffer contains expected preamble + postamble + layer structure markers (e) Emitter buffer non-empty + sensible byte count for cube expect_exit: 0 license_tier: ORIGINAL

dependencies 6 imports · 0 importers

nx_syscalls.nx nx_mesh.nx nx_machine_graph.nx nx_material_profile.nx nx_gcode_emit.nx nx_slice_pipeline.nx nx_slice_pipe_v2_test.nx

imports: nx_syscalls.nxnx_mesh.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 nx_machine_graph_qidi_xmax nx_machine_graph_alloc sys_mmap nx_material_profile_generi nx_material_profile_alloc sys_mmap ↻ nx_gemit_new sys_mmap ↻ nx_gcex_filament_xsect_q14 nx_muldiv_i64 nx_i128_alloc nx_i128_mul_i64 nx_i128_mul_u64 nx_i128_neg nx_i128_div_i64 nx_i128_is_neg nx_i128_neg ↻ nx_i128_udiv_u64 nx_slice_pipe_run_v2 nx_mesh_bbox_compute sys_mmap ↻ nx_mesh_get_vertex_x nx_mesh_get_vertex_y nx_mesh_get_vertex_z nx_bvh_build nx_bvh_build_with_threshol sys_mmap ↻ nx_bvh_compute_tri_info nx_mesh_print_tri_v nx_mesh_get_vertex_x ↻ nx_mesh_get_vertex_y ↻ nx_mesh_get_vertex_z ↻ nx_bvh_tri_at nx_bvh_min3 nx_bvh_max3 nx_bvh_build_subtree nx_bvh_alloc_node nx_bvh_fill_subtree nx_bvh_node_at

structs

none

consts

28const Q14: i64 = 16384

functions

30func smoke_contains(buf: *u8, len: i64, needle: *u8) -> i64
called by 1: main
49func main() -> i64