code wiki / (root) / nx_slice_layer_probe.nx

nx_slice_layer_probe.nx

buildroot/runtime/nx_slice_layer_probe.nx

2747 B68 linesdepth 9pulls 15 transitivereach 0 importersview sourcekind probetopic slice
docsdependenciesstructsconstsfunctions

about

nx_slice_layer_probe.nx -- DIAGNOSTIC: slice ONE layer of the pyramid and dump segment soup + contour result, to see exactly where contour assembly breaks. Always exits 0.

dependencies 7 imports · 0 importers

nx_syscalls.nx nx_mesh.nx nx_mesh_edit.nx nx_mesh_sculpt.nx nx_bvh.nx nx_slice_plane.nx nx_slice_contour.nx nx_slice_layer_probe.nx

imports: nx_syscalls.nxnx_mesh.nxnx_mesh_edit.nxnx_mesh_sculpt.nxnx_bvh.nxnx_slice_plane.nxnx_slice_contour.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 nx_mesh_make_pyramid nx_mesh_alloc sys_mmap nx_mesh_set_vertex nx_mesh_set_triangle dump_layer nx_bvh_build nx_bvh_build_with_threshol sys_mmap ↻ nx_bvh_compute_tri_info nx_mesh_print_tri_v nx_mesh_get_vertex_x nx_mesh_get_vertex_y nx_mesh_get_vertex_z nx_bvh_tri_at nx_bvh_min3 nx_bvh_max3 nx_bvh_build_subtree nx_bvh_alloc_node nx_bvh_fill_subtree nx_bvh_node_at nx_bvh_range_aabb nx_bvh_longest_axis nx_bvh_partition_by_axis nx_bvh_alloc_node ↻ nx_bvh_fill_subtree ↻ dump_bvh w ↻ wn sys_mmap ↻ sys_write ↻ nx_bvh_node_at ↻ nx_slice_plane nx_slice_soup_new sys_mmap ↻ nx_slice_walk_node nx_bvh_node_at ↻

structs

none

consts

none

functions

13func 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 3: dump_bvhdump_layermain calls 1: sys_write
14func wn(v: i64) -> i64
24func dump_bvh(bvh: *NxBvh) -> i64
called by 1: dump_layer calls 3: wwnnx_bvh_node_at
40func dump_layer(model: *NxMesh, plane_z: i64) -> i64
58func main() -> i64