code wiki / (root) / nx_dcc_slice_probe.nx

nx_dcc_slice_probe.nx

buildroot/runtime/nx_dcc_slice_probe.nx

3435 B75 linesdepth 13pulls 38 transitivereach 0 importersview sourcekind probe
docsdependenciesstructsconstsfunctions

about

nx_dcc_slice_probe.nx -- DIAGNOSTIC (not a gate): which DCC-authored geometries does the EXISTING slicer turn into real extrusion? Authors each via our verbs, places on the bed, writes->reads->slices, and reports layers / G1 moves / bytes. Isolates whether the near-empty sphere G-code is our geometry or the slicer's contour-linker on dense curved meshes. Prints a table; always exits 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_slice_probe.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 w sys_write probe sys_mmap nx_mesh_aabb nx_mesh_get_vertex_x nx_mesh_get_vertex_y nx_mesh_get_vertex_z nx_mesh_translate 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 ↻ nx_mesh_get_vertex_y ↻ nx_mesh_get_vertex_z ↻ nx_le_write_u16 nx_stl_load_binary sys_mmap ↻ nx_stl_is_ascii nx_le_read_u32 nx_mesh_alloc sys_mmap ↻ nx_stl_next_pow2 nx_hash_new nx_fp32_bytes_to_q14 nx_fp32_bits_to_q14 nx_stl_intern_vertex nx_stl_pack_xyz nx_le_write_u64 nx_le_write_u32 ↻ nx_hash_fnv1a_bytes nx_hash_has nx_hash_probe nx_hash_fnv1a_i64 nx_hash_get nx_hash_probe ↻

structs

none

consts

17const K_MAGIC_262144: i64 = 262144
18const K_MAGIC_3277: i64 = 3277
19const K_MAGIC_6554: i64 = 6554
20const K_MAGIC_8388608: i64 = 8388608
21const K_MAGIC_163840: i64 = 163840
22const K_MAGIC_327680: i64 = 327680

functions

24func 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: probemain calls 1: sys_write
25func wn(v: i64) -> i64
called by 1: probe calls 2: sys_mmapsys_write
34func smoke_count(buf: *u8, len: i64, needle: *u8) -> i64
called by 1: probe
48func probe(label: *u8, model: *NxMesh) -> i64
66func main() -> i64