code wiki / _hdl_build / nx_explodelab_twinbake.nx
nx_explodelab_twinbake.nx
buildroot/runtime/_hdl_build/nx_explodelab_twinbake.nx
about
nx_explodelab_twinbake.nx -- BAKE THE ENGINEERING TWIN into the /explodelab panel data. Runs the SAME gated
composed pipeline as nx_cadtwin_report_gate (step_parse -> cr_find_parts -> per-part tess2 planar + nurbs
round -> cr_weld -> meshthick min-wall + meshseg3d shells + partid shape class + unitconv dual-dimension +
assemseq teardown rank) on the real as1 STEP file, then EMITS every measured number as PRE-FORMATTED card
text to knowledge/explodelab_twin.txt. The viewer's JS only DISPLAYS these strings (physlab no-JS-logic
law): every value is computed by a sovereign gated organ at bake time, never by the browser.
Line grammar (pipe-delimited, '#' emitted as char 35 -- nx literals cannot carry it):
#TWIN|<part-name> starts a card
#F|<label>|<value> one field row of the current card
expect_exit: 0 license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_cadtwin_report.nxnx_step_write.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
| 13 | const K_MAGIC_524288: i64 = 524288 |
| 14 | const K_MAGIC_8192: i64 = 8192 |
| 15 | const K_MAGIC_4096: i64 = 4096 |
| 16 | const K_MAGIC_1024: i64 = 1024 |
| 17 | const K_MAGIC_20480: i64 = 20480 |
| 18 | const K_MAGIC_2048: i64 = 2048 |
| 19 | const K_MAGIC_65536: i64 = 65536 |
| 20 | const K_MAGIC_262144: i64 = 262144 |
| 21 | const K_MAGIC_4194304: i64 = 4194304 |
functions
| 24 | func tb_mm2(b: *i64, v: i64) -> i64 |
| 40 | func tb_field(b: *i64, label: *u8) -> i64 |
| 49 | func tb_pname(st: *i64, prodidx: i64, out2: *i64, b: *i64) -> i64 |
| 82 | func main() -> i64 |