nx_objload.nx
buildroot/runtime/nx_objload.nx
about
nx_objload.nx -- ★sovereign Wavefront OBJ loader (the Stanford-corpus rung of the field-evidence foundation): parse
`v x y z` + `f a b c` ASCII into nx_trimesh, bbox-normalized to a target extent. Signed 6-decimal coords are read in
MICRO units (x1e6) so the bunny's 0.15-metre scale survives integer parsing. Two passes (bbox, emit). license_tier: ORIGINAL
dependencies 2 imports · 4 importers
imports: nx_syscalls.nxnx_trimesh.nx
imported by: nx_bunny_gate.nxnx_engine_lod_gate.nxnx_engine_phys_gate.nxnx_engine_scene_gate.nx
structs
| none |
consts
| 6 | const K_MAGIC_1000000: i64 = 1000000 |
| 7 | const K_MAGIC_100000: i64 = 100000 |
| 8 | const K_MAGIC_2000000000: i64 = 2000000000 |
| 9 | const K_MAGIC_1024: i64 = 1024 |
functions
| 12 | func obj_num(buf: *u8, end: i64, p0: i64, out: *i64) -> i64 called by 1: obj_load |
| 51 | func obj_linestart(buf: *u8, p: i64, ch: i64) -> i64 called by 1: obj_load |
| 61 | func obj_load(path: *u8, target: i64, col: i64) -> i64 |