code wiki / (root) / nx_gm_cloth_lib_t138.nx

nx_gm_cloth_lib_t138.nx

buildroot/runtime/nx_gm_cloth_lib_t138.nx

18505 B402 linesdepth 6pulls 8 transitivereach 2 importersview sourcekind librarytopic gm
docsdependenciesstructsconstsfunctions

about

nx_gm_cloth_lib.nx -- LIB: the PG29 cloth XPBD solver (gm_xpbd_step and its edge/area rulers). Split out of nx_nxa_garment so the GATE can import it without colliding with the generator's main(); the garment organ imports this lib and carries a REAL call (the xpbdcheck verb), so its PG29 watch-row flip is backed by wiring, not a name in a comment. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 1 imports · 2 importers

nx_softtissue.nx nx_gm_cloth_lib_t138.nx nx_gm_xpbd_correct_gate_t138.nx nx_gm_xpbd_drape_t138.nx

imports: nx_softtissue.nx

imported by: nx_gm_xpbd_correct_gate_t138.nxnx_gm_xpbd_drape_t138.nx

structs

none

consts

29const GM_EROW: i64 = 4
30const GM_C_STRUCT: i64 = 0
31const GM_C_SHEAR: i64 = 1
32const GM_C_BEND: i64 = 2
34const GM_SKIN: i64 = 2
108const GMC_MAX:i64=9223372036854775807

functions

36func gm_isqrt(n: i64) -> i64
called by 2: gm_distgm_area2
48func gm_dist(v: *i64, a: i64, b: i64) -> i64
called by 2: gm_edges_buildmain calls 1: gm_isqrt
57func gm_edges_build(verts: *i64, nu: i64, nv2: i64, edges: *i64) -> i64
called by 1: main calls 1: gm_dist
109func gmc_add(a:i64,b:i64,s:*i64)->i64
115func gmc_mul(a:i64,b:i64,s:*i64)->i64
121func gmc_round(a:i64,b:i64,s:*i64)->i64
126func gmc_dot(ax:i64,ay:i64,az:i64,bx:i64,by:i64,bz:i64,s:*i64)->i64
129func gmc_alpha(a:i64,ds:i64,dt:i64,s:*i64)->i64
136func gmc_overlap(a:i64,na:i64,b:i64,nb:i64)->i64
143func gm_xpbd_workspace_words(nvv:i64,ne:i64)->i64
154func gm_xpbd_step_checked(verts:*i64,vel:*i64,nvv:i64,edges:*i64,ne:i64,
250func gm_xpbd_step(verts:*i64,vel:*i64,nvv:i64,edges:*i64,ne:i64,pins:*i64,npins:i64,
263func gm_xpbd_step_banked(verts:*i64,vel:*i64,nvv:i64,edges:*i64,ne:i64,pins:*i64,npins:i64,
275func gm_area2(verts: *i64, nu: i64, nv2: i64) -> i64
called by 1: main calls 1: gm_isqrt
320func gmc_closest(px:i64,py:i64,pz:i64,ax:i64,ay:i64,az:i64,ux:i64,uy:i64,uz:i64,uu:i64,c:*i64,s:*i64)->i64
329func gm_capsule_project_checked(verts:*i64,vel:*i64,nvv:i64,
392func gm_capsule_project(verts:*i64,vel:*i64,nvv:i64,ax:i64,ay:i64,az:i64,bx:i64,by:i64,bz:i64,rad:i64)->i64
called by 2: mainmain calls 1: gm_capsule_project_checked