Skip to main content

Module anatomy_body

Module anatomy_body 

Source
Expand description

Compile a model’s organ meshes into the .10d body — the ingestion entry point (S5.4).

Given a set of (organ_key, mesh_bytes) for an [AnatomyModel], resolve each organ’s body system and compile it to a sealed .10d whose q42 manifest carries geo:bodySystem + geo:anatomyModel. Organs with no system mapping, or bytes that fail to parse, are reported — never silently dropped. This layer owns the compile; the mesh bytes are supplied by the caller (the desktop glb_ingest loads them from the CCF/HRA set chosen by AnatomyModel::asset_set()), so the file I/O and the compile stay in their own lanes.

Structs§

BodyCompileResult
The outcome of compiling a model’s organ set — honest about what did and did not compile.
CompiledOrgan
One organ compiled into the body: its resolved system and the sealed .10d asset.
OrganContainer
An organ made real as a hypermedia container: the container model + its full semantic quin set (the organ’s geometry manifest ⊕ the hypermedia edges ⊕ the descriptors) + the lexicon.

Functions§

body_container
Bundle a model’s organ containers into a single body container — one addressable unit whose members are the organs (so the body is a semantic bundle, not a folder of files). Returns the body container + the combined quin graph (every organ container’s quins + the body’s bundling edges + descriptors).
compile_body
Compile a model’s organ meshes into its .10d body asset set.
organ_container
Turn a CompiledOrgan into a HypermediaContainer. source_url is the CCF/HRA CDN URL the GLB was fetched from — recorded as the immutable source with its licence/creator; pass None if unknown.