code wiki / _hdl_build / nx_explodelab_twinbake.nx

nx_explodelab_twinbake.nx

buildroot/runtime/_hdl_build/nx_explodelab_twinbake.nx

13593 B424 linesdepth 8pulls 20 transitivereach 0 importersview sourcekind tooltopic explodelab
docsdependenciesstructsconstsfunctions

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

nx_cadtwin_report.nx nx_step_write.nx nx_explodelab_twinbake.nx

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

main sp_read_file sys_openat_rd sys_read sys_close sp_scan sp_skip_string sp_skip_comment sp_statement sp_isspace sp_isnamec sp_args_span sp_skip_string ↻ ur_init sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ ur_std ur_add ur_gcd ur_find ur_streq sp_nauo_collect sp_name_is sp_arg_span sp_skip_string ↻ sp_span_ref sp_isspace ↻

structs

none

consts

13const K_MAGIC_524288: i64 = 524288
14const K_MAGIC_8192: i64 = 8192
15const K_MAGIC_4096: i64 = 4096
16const K_MAGIC_1024: i64 = 1024
17const K_MAGIC_20480: i64 = 20480
18const K_MAGIC_2048: i64 = 2048
19const K_MAGIC_65536: i64 = 65536
20const K_MAGIC_262144: i64 = 262144
21const K_MAGIC_4194304: i64 = 4194304

functions

24func tb_mm2(b: *i64, v: i64) -> i64
called by 1: main calls 2: swb_cswb_n
40func tb_field(b: *i64, label: *u8) -> i64
called by 1: main calls 2: swb_cswb_s
49func tb_pname(st: *i64, prodidx: i64, out2: *i64, b: *i64) -> i64
called by 1: main calls 3: sp_arg_spanswb_csp_isspace
82func main() -> i64