code wiki / (root) / nx_slice_auto_supports.nx

nx_slice_auto_supports.nx

buildroot/runtime/nx_slice_auto_supports.nx

6925 B158 linesdepth 11pulls 26 transitivereach 34 importersview sourcekind librarytopic slice
docsdependenciesstructsconstsfunctions

about

nx_slice_auto_supports.nx -- auto-build a physics-aware support plan from a real mesh. ===================================================================== SUPERIOR CAPABILITY (per the 2026-05-20 cardinal): Industry slicers auto-detect supports but ALL emit constant-diameter pillars regardless of cantilever load. This primitive composes: mesh -> bvh -> per-layer slice -> overhang vertex detect -> load-proportional pillar add (physics-aware sizing) -> NxSupportPlan The capability that industry doesn't have: auto-detected supports with load-AWARE per-pillar sizing. The integrated workflow IS the superior capability -- not just a math primitive. ===================================================================== license_tier: ORIGINAL

dependencies 10 imports · 3 importers

nx_syscalls.nx nx_polygon.nx nx_mesh.nx nx_mesh_print_check.nx nx_bvh.nx nx_slice_plane.nx nx_slice_contour.nx nx_supports.nx nx_material_profile.nx nx_pillar_physics.nx nx_slice_auto_supports.nx nx_auto_supports_v2_target_test.nx nx_slice_auto_supports_test.nx nx_slice_pipeline.nx

imports: nx_syscalls.nxnx_polygon.nxnx_mesh.nxnx_mesh_print_check.nxnx_bvh.nxnx_slice_plane.nxnx_slice_contour.nxnx_supports.nxnx_material_profile.nxnx_pillar_physics.nx

imported by: nx_auto_supports_v2_target_test.nxnx_slice_auto_supports_test.nxnx_slice_pipeline.nx

structs

none

consts

36const NX_AUTO_SUPPORT_DEFAULT_MASS_Q14: i64 = 16384 // 1 g
37const NX_AUTO_SUPPORT_DEFAULT_ARM_Q14: i64 = 32768 // 2 mm
39const NX_AUTO_SUPPORT_OK: i64 = 0
40const NX_AUTO_SUPPORT_ERR_INPUT: i64 = 1

functions

50func nx_slice_pipe_build_supports(mesh: *NxMesh,