code wiki / _hdl_build / nx_cadtwin_report.nx

nx_cadtwin_report.nx

buildroot/runtime/_hdl_build/nx_cadtwin_report.nx

7820 B197 linesdepth 7pulls 16 transitivereach 3 importersview sourcekind librarytopic cadtwin
docsdependenciesstructsconstsfunctions

about

nx_cadtwin_report.nx -- THE TWIN REPORT (cadtwin capstone): compose every gated organ into one per-PART engineering report from a raw STEP file. Part attribution comes from the FILE'S OWN semantics (engineering- twin doctrine: file truth over geometric guessing): SHAPE_DEFINITION_REPRESENTATION -> PRODUCT_DEFINITION -> PRODUCT name, and SDR -> ADVANCED_BREP_SHAPE_REPRESENTATION -> MANIFOLD_SOLID_BREP -> CLOSED_SHELL -> faces. Per part: tessellate ITS faces (nx_step_tess planar + nx_step_nurbs round) into a per-part mesh -> WELD duplicate vertices (new mw-helper; per-face tessellation emits copies -- welding makes meshseg3d/meshthick correct on real tess output) -> measure: bbox (dual-dimensioned mm + thou via nx_unitconv), wall thickness (nx_meshthick), shape-class descriptor (nx_partid), connectivity components (nx_meshseg3d), disassembly rank (nx_assemseq). COMPOSES 9 organs; every number measured, coverage counted honestly. license_tier: ORIGINAL

dependencies 5 imports · 3 importers

nx_step_tess2.nx nx_meshseg3d.nx nx_partid.nx nx_unitconv.nx nx_assemseq.nx nx_cadtwin_report.nx nx_cadtwin_report_gate.nx nx_explodelab_meshgen.nx nx_step_write_gate.nx

imports: nx_step_tess2.nxnx_meshseg3d.nxnx_partid.nxnx_unitconv.nxnx_assemseq.nx

imported by: nx_cadtwin_report_gate.nxnx_explodelab_meshgen.nxnx_step_write_gate.nx

structs

none

consts

15const K_MAGIC_7919: i64 = 7919
16const K_MAGIC_104729: i64 = 104729

functions

19func cr_weld(mesh: i64) -> i64
called by 3: mainmainmain calls 3: m3_hdrm3_vertm3_tri
76func cr_find_parts(st: *i64, pdid: *i64, prodidx: *i64, shellidx: *i64) -> i64
128func cr_tess_part(tt: *i64, nt: *i64, t2: *i64, slab: *i64, shellidx: i64, out4: *i64) -> i64
169func cr_mm2(v: i64) -> i64
called by 1: main
181func cr_cksum(mesh: i64) -> i64
called by 1: main calls 3: m3_hdrm3_vertm3_tri