code wiki / (root) / nx_print_session_test.nx

nx_print_session_test.nx

buildroot/runtime/nx_print_session_test.nx

3232 B74 linesdepth 14pulls 33 transitivereach 0 importersview sourcekind gate/prooftopic print
docsdependenciesstructsconstsfunctions

about

nx_print_session_test.nx -- end-to-end push-and-play test. One function call, full bulletproof pipeline. Closed-form invariants: (a) SAFE case: tetrahedron + Qidi + PLA + 0.2mm layer + 0.4mm line + 20% infill -> NX_SESSION_OK, emitter populated, n_layers >= 4, emitter.len > 500 bytes. (b) REFUSED case 1: 500mm tetrahedron exceeds Qidi build volume -> NX_SESSION_REFUSED, preflight_reason == MESH_TOO_LARGE, NO emitter (or empty), n_layers == 0. (c) REFUSED case 2: non-manifold mesh (T3 removed) -> REFUSED + NOT_MANIFOLD reason. (d) REFUSED case 3: bad layer height (0.5mm on 0.4mm nozzle) -> REFUSED + LAYER_TOO_THICK reason. (e) Verdict names non-NULL. expect_exit: 0 license_tier: ORIGINAL

dependencies 7 imports · 0 importers

nx_syscalls.nx nx_mesh.nx nx_machine_graph.nx nx_material_profile.nx nx_preflight.nx nx_gcode_emit.nx nx_print_session.nx nx_print_session_test.nx

imports: nx_syscalls.nxnx_mesh.nxnx_machine_graph.nxnx_material_profile.nxnx_preflight.nxnx_gcode_emit.nxnx_print_session.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_print_session_run sys_mmap ↻ nx_preflight_check sys_mmap ↻ nx_mesh_is_manifold nx_mesh_print_tri_v nx_mesh_print_dir_edge_cou nx_mesh_print_tri_v ↻ nx_mesh_fits_machine nx_mesh_bbox_compute sys_mmap ↻ nx_mesh_get_vertex_x nx_mesh_get_vertex_y nx_mesh_get_vertex_z nx_polymer_validate_profil nx_polymer_thermal_for sys_mmap ↻ nx_polytherm_set nx_polymer_thermal_validat nx_layer_envelope_check nx_flow_envelope_check nx_gemit_new sys_mmap ↻ nx_gcex_filament_xsect_q14 nx_muldiv_i64 nx_i128_alloc nx_i128_mul_i64 nx_i128_mul_u64

structs

none

consts

28const Q14: i64 = 16384

functions

30func main() -> i64