code wiki / (root) / nx_slice_auto_supports_test.nx

nx_slice_auto_supports_test.nx

buildroot/runtime/nx_slice_auto_supports_test.nx

3977 B96 linesdepth 12pulls 27 transitivereach 0 importersview sourcekind gate/prooftopic slice
docsdependenciesstructsconstsfunctions

about

nx_slice_auto_supports_test.nx -- verify auto-build of physics-aware support plan from a real mesh. Closed-form invariants: (a) Null mesh -> null plan (b) Zero-tri mesh -> null plan (c) Bad layer height -> null plan (d) Valid input -> non-null plan (e) Cube mesh (no overhangs) -> plan.n == 0 (workflow runs cleanly on a real mesh and correctly detects no support needed) (f) Plan carries the requested footprint/spacing/capacity bounds (g) Plan is COMPOSABLE with emit_layer (sanity: caller can chain) expect_exit: 0 license_tier: ORIGINAL

dependencies 10 imports · 0 importers

nx_syscalls.nx nx_polygon.nx nx_mesh.nx nx_bvh.nx nx_supports.nx nx_material_profile.nx nx_machine_graph.nx nx_gcode_emit.nx nx_pillar_physics.nx nx_slice_auto_supports.nx nx_slice_auto_supports_test.nx

imports: nx_syscalls.nxnx_polygon.nxnx_mesh.nxnx_bvh.nxnx_supports.nxnx_material_profile.nxnx_machine_graph.nxnx_gcode_emit.nxnx_pillar_physics.nxnx_slice_auto_supports.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_material_profile_generi nx_material_profile_alloc sys_mmap nx_slice_pipe_build_suppor nx_mesh_bbox_compute sys_mmap ↻ nx_mesh_get_vertex_x nx_mesh_get_vertex_y nx_mesh_get_vertex_z nx_support_plan_new sys_mmap ↻ nx_supports_new sys_mmap ↻ nx_slice_plane nx_slice_soup_new sys_mmap ↻ nx_slice_walk_node nx_bvh_node_at nx_slice_one_tri nx_mesh_print_tri_v nx_mesh_get_vertex_x ↻ nx_mesh_get_vertex_y ↻ nx_mesh_get_vertex_z ↻ nx_slice_soup_emit nx_slice_soup_seg_ptr sys_mmap ↻ nx_slice_edge_at_z nx_slice_walk_node ↻ nx_slice_contour_build nx_slice_contours_new sys_mmap ↻ sys_mmap ↻ nx_slice_walk_one nx_polygon_alloc sys_mmap ↻ nx_slice_seg_x1 nx_slice_soup_seg_ptr ↻ nx_slice_seg_y1 nx_slice_soup_seg_ptr ↻

structs

none

consts

28const Q14: i64 = 16384

functions

30func main() -> i64