code wiki / (root) / nx_twinface.nx

nx_twinface.nx

buildroot/runtime/nx_twinface.nx

4197 B72 linesdepth 12pulls 64 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_twinface.nx -- aesthetictwin AT35 (2026-09-17): render the estate's own generated face (an nx_persongen identity over the inside-out nx_faceanat face, the sovereign SDF renderer with its eye, lash and lip materials, our PNG writer) to a still the photo ruler can read, so the SAME instrument that measures a reference photograph measures the twin's render, and the outside oracle can be run on the render as the render-side liar-killer. No photo input, no third party: a seed is the whole identity. The render lives in nx_twinfit_lib (tw_render_png); this is the file-door CLI. nx_twinface render <seed> <yaw> <out.png> -> the identity (seven morph percents), skin tone, frame, PNG bytes on disk exit: 0 ok | 2 usage | 3 png not written license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_twinfit_lib.nx nx_twinface.nx

imports: nx_syscalls.nxnx_twinfit_lib.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main tf_usage sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ tw_skin_default tw_atoi tw_render_all_png tw_build_all tw_build faceanat_build sdf_clear_ops sdf_set_floor sdf_set_mtx_amp fa_tissue_z sdf_set_op fa_lip_prims sdf_set_prim sdf_set_kb sdf_set_mat sdf_set_rot it_cos4096 it_sin4096 sdf_set_prim ↻ sdf_set_roll it_cos4096 ↻ it_sin4096 ↻ faceanat_morph_width

structs

none

consts

12const TF_EXIT_USAGE: i64 = 2
13const TF_EXIT_PNG: i64 = 3
14const TF_ARGC_RENDER: i64 = 5
15const TF_ARGC_GENOME: i64 = 12
16const TF_ARGC_FITFACE: i64 = 18
17const TF_ID_FIELDS: i64 = 7 // persongen_build writes seven morph percents: width, length, jaw, eyes, lips, nose, cheek

functions

19func tf_usage() -> i64 { ri_puts("usage: nx_twinface render <seed> <yaw> <out.png>\n" as *u8); return TF_EXIT_USAGE }
called by 1: main
21func main(argc: i64, argv: **u8) -> i64