code wiki / (root) / nx_depthfuse.nx

nx_depthfuse.nx

buildroot/runtime/nx_depthfuse.nx

6001 B138 linesdepth 4pulls 8 transitivereach 0 importersview sourcekind orphan library
docsdependenciesstructsconstsfunctions

about

nx_depthfuse.nx -- FUSE a plane-sweep depth map into a real nx_mesh3 TRIANGLE SURFACE. This is the step that turns "we recovered depth" into "we have a reconstructed part": once the depth map is a mesh3, the ENTIRE existing twin analysis chain runs on it unchanged -- nx_meshthick wall thickness, nx_meshseg3d segmentation, nx_partid shape class, STL export -- none of which can consume a depth map. DISCONTINUITY CULLING is the load-bearing detail: naively triangulating a depth grid webs a skin across every depth jump, so a reconstructed part would fuse to its background and every downstream measurement (wall thickness above all) would be taken on geometry that does not exist. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_planesweep.nx nx_mesh3.nx nx_depthfuse.nx

imports: nx_planesweep.nxnx_mesh3.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

16func df_fuse(mesh: i64, depth: *i64, cx: i64, cy: i64, cz: i64, basis: *i64, f: i64, w: i64, h: i64, stride: i64, maxjump: i64) -> i64
95func df_merge_depth(a: *i64, b: *i64, out: *i64, n: i64, tol: i64) -> i64
119func df_max_tri_zspan(mesh: i64) -> i64