code wiki / (root) / nx_slice_pipe_v2_real_test.nx

nx_slice_pipe_v2_real_test.nx

buildroot/runtime/nx_slice_pipe_v2_real_test.nx

3875 B105 linesdepth 13pulls 30 transitivereach 0 importersview sourcekind gate/prooftopic slice
docsdependenciesstructsconstsfunctions

about

nx_slice_pipe_v2_real_test.nx -- HARD REAL TEST of the integrated slicer on a non-trivial mesh (tetrahedron with real overhangs). Tetrahedron has 4 slanted faces -- overhang detection MUST fire on at least one layer pair, so the auto-supports pre-pass produces a non-empty plan. Industry slicers auto-detect supports too; ours auto-detects AND load-aware-sizes them in the same call. HARD: actual mesh geometry with real overhangs, not a synthetic cube/cube-with-perfect-edges that masks bugs. Real metric values asserted (byte count, layer count, support count) -- not just "PASS if it ran." Per the SUPERIOR-CAPABILITY cardinal: this is the outcome validation for the integrated slicer. Industry slicers can run on a tetrahedron too -- but they emit constant-diameter supports. Our test verifies the substrate produces the integrated artifact industry can't (auto-detect + load-aware-size). expect_exit: 0 license_tier: ORIGINAL

dependencies 7 imports · 0 importers

nx_syscalls.nx nx_mesh.nx nx_mesh_print_check.nx nx_machine_graph.nx nx_material_profile.nx nx_gcode_emit.nx nx_slice_pipeline.nx nx_slice_pipe_v2_real_test.nx

imports: nx_syscalls.nxnx_mesh.nxnx_mesh_print_check.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_mesh_make_tetrahedron nx_mesh_alloc sys_mmap ↻ nx_mesh_set_vertex nx_mesh_set_triangle 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_gemit_preamble nx_gemit_cstr nx_gemit_byte nx_gemit_int sys_mmap ↻ nx_int_to_decimal nx_fmt_reverse nx_gemit_bytes nx_gemit_byte ↻ nx_gemit_q14 sys_mmap ↻ nx_q14_to_decimal nx_int_to_decimal ↻ nx_gemit_bytes ↻ nx_slice_pipe_run_v2 nx_mesh_bbox_compute

structs

none

consts

31const Q14: i64 = 16384

functions

33func smoke_count(buf: *u8, len: i64, needle: *u8) -> i64
called by 1: main
53func main() -> i64