nx_shellclose.nx
buildroot/runtime/nx_shellclose.nx
about
nx_shellclose.nx -- CLOSE a reconstructed open sheet into a WATERTIGHT SOLID by offsetting it along its
own normals and stitching the rim.
WHY: a single-view reconstruction is an open sheet. nx_meshthick correctly returns -1 on it -- an open
surface has no opposing face, so wall thickness is UNDEFINED. Every downstream twin measurement that
matters for flip analysis (min wall, underbuilt flags) therefore cannot run on reconstructed geometry at
all. Offsetting the sheet gives a closed body those organs CAN measure.
⚠HONEST SCOPE, and it must travel with every number this produces: the back surface is SYNTHESISED, not
observed. This is a SHELL of assumed thickness, not a two-sided capture. It makes the reconstruction
measurable and watertight; it does NOT make the far side real. A true solid needs views from both sides.
license_tier: ORIGINAL
dependencies 1 imports · 1 importers
imports: nx_mesh3.nx
imported by: nx_vnormals_gate.nx
structs
| none |
consts
| 15 | const SC_Q: i64 = 256 |
functions
| 19 | func sc_isqrt(n: i64) -> i64 called by 1: sc_vertex_normals |
| 32 | func sc_vertex_normals(mesh: i64, nrm: *i64) -> i64 |
| 91 | func sc_edge_uses(mesh: i64, p: i64, q: i64) -> i64 |
| 110 | func sc_boundary_edges(mesh: i64) -> i64 |
| 131 | func sc_close(src: i64, dst: i64, thick: i64, nrm: *i64) -> i64 |