code wiki / _hdl_build / nx_slicer.nx
nx_slicer.nx
buildroot/runtime/_hdl_build/nx_slicer.nx
about
nx_slicer.nx -- sovereign STL -> G-code slicer (CLI / MCP organ).
nx_slicer slice <stl-path> <gcode-out-path> [layer_h_um] [infill_pct]
Reads a binary STL, slices it through the sovereign stack (nx_slicer_lib ->
nx_stl + nx_gemit + nx_slice_pipe_run_v2 on the QIDI X-Max 3 machine profile
+ generic PLA), writes the G-code file, and emits a summary JSON. The
sovereign alternative to third-party slicers -- our own geometry->toolpath.
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_gcode_emit.nxnx_slicer_lib.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 14 | const SL_MAGIC_4096: i64 = 4096 |
| 16 | const SL_LH_DEFAULT: i64 = 3277 // 0.2 mm in the slicer's Q14 units |
| 17 | const SL_Q_PER_MM: i64 = 16384 |
functions
| 19 | func slw(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 } |
| 21 | func main(argc: i64, argv: *i64) -> i64 |