code wiki / (root) / nx_body_skin_cut.nx

nx_body_skin_cut.nx

buildroot/runtime/nx_body_skin_cut.nx

8550 B88 linesdepth 5pulls 6 transitivereach 7 importersview sourcekind librarytopic body
docsdependenciesstructsconstsfunctions

about

Versioned attachment consumer for the existing body loft. Source positions remain in its emitted world frame. This first consumer joins two declared end cuts; it does not infer anatomy or repair unrelated defects.

dependencies 2 imports · 6 importers

nx_body_skin_junction.nx nx_body_rest_registration.nx nx_body_skin_cut.nx nx_body_gen.nx nx_body_gen_skin_candidate_t345.nx nx_body_gen_winding_candidate_t365 nx_body_profile_winding_candidate_ nx_body_skin_artifact_gate_t345.nx nx_body_skin_boundary_gate_t345.nx

imports: nx_body_skin_junction.nxnx_body_rest_registration.nx

imported by: nx_body_gen.nxnx_body_gen_skin_candidate_t345.nxnx_body_gen_winding_candidate_t365.nxnx_body_profile_winding_candidate_t366.nxnx_body_skin_artifact_gate_t345.nxnx_body_skin_boundary_gate_t345.nx

structs

5struct BgCutJoin { part_a:i64, side_a:i64, station_a:i64, keep_a:i64, part_b:i64, side_b:i64, station_b:i64, keep_b:i64, radial:i64, vertices:*NxBufOwned, faces:*NxBufOwned, normals:*i64, seen_a:i64, seen_b:i64, error:i64, removed:i64, added:i64, max_bytes:i64, reserved:i64 }

consts

68const BJC_RECIPE_VERSION:i64=1
69const BJC_RECIPE_TOKENS:i64=10
70const BJC_ERROR_WORDS:i64=5

functions

6func bjc_join_bytes()->i64{return __size_of(BgCutJoin)}
7func bjc_words(p:*i64,offset:i64)->*i64{return ((p as i64)+offset*8) as *i64}
8func bjc_init(j:*BgCutJoin,rs:i64,np:i64,counts:*i64,mirrors:*i64,sub:i64)->i64
29func bjc_slot(j:*BgCutJoin,p:i64,side:i64)->i64{if p==j.part_a&&side==j.side_a{return 0};if p==j.part_b&&side==j.side_b{return 1};return -1}
30func bjc_keep(j:*BgCutJoin,p:i64,side:i64,st:i64,cap:i64)->i64
36func bjc_ring(j:*BgCutJoin,p:i64,side:i64,st:i64,x:*i64,y:*i64,z:*i64,nx:*i64,ny:*i64,nz:*i64)->i64
42func bjc_face(j:*BgCutJoin,p:i64,side:i64,t:*i64)->i64
49func bjc_finish(j:*BgCutJoin,tri:*i64,cr:*i64,cg:*i64,cb:*i64,nt:i64,cap:i64,r:i64,g:i64,b:i64)->i64
60func bjc_release(j:*BgCutJoin)->i64
73func bjc_recipe_parse(data:*u8,n:i64,j:*BgCutJoin,error:*i64)->i64