code wiki / (root) / nx_dcc_to_print_test.nx

nx_dcc_to_print_test.nx

buildroot/runtime/nx_dcc_to_print_test.nx

5244 B108 linesdepth 13pulls 38 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_dcc_to_print_test.nx -- DCC->PRINT CAPSTONE on AUTHORED, SCULPTED geometry. The cube capstone proved a hardcoded cube prints. This proves the WHOLE DCC toolchain feeds the real pipeline: an icosphere built from an octahedron (nx_mesh_sculpt) is SCULPTED with an inflate brush (a north-pole bump), placed on the bed with the translate verb (nx_mesh_edit), exported with the GENERAL writer (nx_stl_write_mesh), then run through the EXISTING reader + QIDI slicer + G-code emitter -- supports auto-generated for the spherical overhangs. Every geometry op is sovereign + gate-proven; the downstream fabrication stack is all reused. model(sculpted) -> print, end to end. expect_exit: 0.

dependencies 10 imports · 0 importers

nx_syscalls.nx nx_mesh.nx nx_mesh_edit.nx nx_mesh_sculpt.nx nx_stl_write.nx nx_stl.nx nx_machine_graph.nx nx_material_profile.nx nx_gcode_emit.nx nx_slice_pipeline.nx nx_dcc_to_print_test.nx

imports: nx_syscalls.nxnx_mesh.nxnx_mesh_edit.nxnx_mesh_sculpt.nxnx_stl_write.nxnx_stl.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_mesh_make_icosphere nx_mesh_make_octahedron nx_mesh_alloc sys_mmap ↻ nx_mesh_set_vertex nx_mesh_set_triangle nx_mesh_subdivide nx_mesh_alloc ↻ nx_mesh_set_vertex ↻ nx_mesh_get_vertex_x nx_mesh_get_vertex_y nx_mesh_get_vertex_z nx_mesh_get_color nx_mesh_set_triangle ↻ nx_mesh_project_to_sphere nx_isqrt nx_mesh_sculpt_brush nx_isqrt ↻ chk w ↻ eqi nx_mesh_aabb nx_mesh_get_vertex_x ↻ nx_mesh_get_vertex_y ↻ nx_mesh_get_vertex_z ↻ nx_mesh_translate wn sys_mmap ↻ sys_write ↻ nx_stl_write_mesh nx_le_write_u32 sw_put_mesh_vert nx_le_write_u32 ↻ f32_from_q14 f32_from_i64 nx_mesh_get_vertex_x ↻

structs

none

consts

none

functions

23func 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
24func wn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
33func smoke_count(buf: *u8, len: i64, needle: *u8) -> i64
called by 1: main
45func chk(cond: i64, pass: *i64, fail: *i64, label: *u8) -> i64
called by 1: main calls 1: w
50func eqi(a: i64, b: i64) -> i64 { if a == b { return 1 } return 0 }
called by 1: main
52func main() -> i64