code wiki / (root) / nx_shellclose.nx

nx_shellclose.nx

buildroot/runtime/nx_shellclose.nx

6043 B178 linesdepth 3pulls 4 transitivereach 1 importersview sourcekind library
docsdependenciesstructsconstsfunctions

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

nx_mesh3.nx nx_shellclose.nx nx_vnormals_gate.nx

imports: nx_mesh3.nx

imported by: nx_vnormals_gate.nx

structs

none

consts

15const SC_Q: i64 = 256

functions

19func sc_isqrt(n: i64) -> i64
called by 1: sc_vertex_normals
32func sc_vertex_normals(mesh: i64, nrm: *i64) -> i64
91func sc_edge_uses(mesh: i64, p: i64, q: i64) -> i64
110func sc_boundary_edges(mesh: i64) -> i64
131func sc_close(src: i64, dst: i64, thick: i64, nrm: *i64) -> i64