nx_supports_physics_test.nx
buildroot/runtime/nx_supports_physics_test.nx
about
nx_supports_physics_test.nx -- proves bits-up physics-aware pillar
sizing produces DIFFERENT pillar dimensions for DIFFERENT loads
within the same plan. Industry baseline (Orca/Bambu/Cura/Prusa)
cannot do this -- they emit identical pillars regardless of load.
Closed-form invariants:
(a) plan_add_pillar_physics with LIGHT load on PLA -> MIN footprint
(matches industry baseline at the light end)
(b) plan_add_pillar_physics with HEAVY load on PLA -> footprint > MIN
(industry would underbuild here)
(c) Two pillars in same plan with different loads -> different
per-pillar footprints (industry: identical regardless)
(d) Same load, stiffer material (PEEK) -> smaller footprint than PLA
(industry: identical footprint regardless of material)
(e) Emit produces a square that scales with per-pillar footprint
(verify by ensuring HEAVY pillar emits a bigger square than
a NEAR-BY LIGHT pillar in the same emit pass)
(f) Merge policy: heavier load at same XY EXTENDS existing
footprint (never shrinks)
expect_exit: 0
license_tier: ORIGINAL
dependencies 7 imports · 0 importers
imports: nx_syscalls.nxnx_polygon.nxnx_machine_graph.nxnx_material_profile.nxnx_gcode_emit.nxnx_pillar_physics.nxnx_supports.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
| 32 | const Q14: i64 = 16384 |
functions
| 34 | func main() -> i64 |