code wiki / (root) / nx_anatomy.nx

nx_anatomy.nx

buildroot/runtime/nx_anatomy.nx

4393 B117 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind librarytopic anatomy
docsdependenciesstructsconstsfunctions

about

nx_anatomy.nx -- the ANATOMICAL FEATURE REGISTRY (Elara detail architecture, the VOCABULARY layer): every intimate/detail feature is a DATA RECORD -- {feature id, bone binding, local offset, morph-bank ref, and its DETAIL-FIELD params (subdiv levels, bump density, bump amp, seed)} -- so "Montgomery glands on the areola" is literally a row: AF_MONTGOMERY bound to the chest bone at the areola offset with a bump field (density ~28/256, amp, seed). Features serialize as NXA1 packs => ANATOMY PACKS flow through the same CID mod economy as block packs and morph packs. The moddable law, extended to the body. Adult-lane note: this registry feeds the age/membership-GATED surfaces only (the gating layer is live platform law). license_tier: ORIGINAL

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_anatomy.nx nx_detail_gate.nx

imports: nx_syscalls.nx

imported by: nx_detail_gate.nx

structs

none

consts

10const AF_MAGIC_2147483648: i64 = 2147483648
11const AF_MAGIC_4294967296: i64 = 4294967296
14const AF_VULVA: i64 = 1
15const AF_CLITORIS: i64 = 2
16const AF_LABIA_MINORA: i64 = 3
17const AF_LABIA_MAJORA: i64 = 4
18const AF_NIPPLE: i64 = 5
19const AF_AREOLA: i64 = 6
20const AF_MONTGOMERY: i64 = 7 // gland bump field on the areola
21const AF_ANUS: i64 = 8
22const AF_PUBIC_HAIR: i64 = 9 // strand-region spec (density/length -> the jiggle-chain strand system)
23const AF_PERINEUM: i64 = 10
24const AF_URETHRA: i64 = 11
25const AF_SKIN_PORES: i64 = 12 // whole-region micro detail field
26const AF_FRENULUM: i64 = 13
27const AF_FOURCHETTE: i64 = 14
32const AN_MAXF: i64 = 64

functions

34func an_hdr(base: i64) -> *i64 { return base as *i64 }
35func an_row(base: i64, i: i64) -> *i64 { return (base + 64 + i * 128) as *i64 }
36func an_bytes() -> i64 { return 64 + AN_MAXF * 128 + 64 }
called by 1: main
38func an_init(base: i64) -> i64
called by 2: an_loadmain calls 1: an_hdr
43func an_add(base: i64, feature: i64, bone: i64, ox: i64, oy: i64, oz: i64, morph: i64, levels: i64, density: i64, amp: i64, seed: i64) -> i64
called by 1: main calls 2: an_hdran_row
59func an_slider(base: i64, row: i64, which: i64, v: i64) -> i64
calls 1: an_row
67func an_w32(buf: *u8, off: i64, v: i64) -> i64
called by 1: an_save
74func an_r32(buf: *u8, off: i64) -> i64
called by 1: an_load
79func an_save(base: i64, buf: *u8) -> i64
called by 1: main calls 3: an_hdran_w32an_row
95func an_load(base: i64, buf: *u8, len: i64) -> i64
called by 1: main calls 4: an_r32an_initan_hdran_row