Skip to main content

Module anatomy_pack

Module anatomy_pack 

Source
Expand description

Producer for a curated .hmc anatomy asset pack (ships in the release / web demo). Native-only (blocking network I/O against the HRA endpoints). Produce a shippable curated .hmc anatomy asset pack for a model.

The full CCF/HRA reference body is ~200–290 MB of GLB per model — too large to bundle into a release. This builds a curated subset (a representative set of organs across body systems, tens of MB) into a single .hmc bundle (see qualia_core_db::bundle): each organ is a sealed .10d entry carrying an [AnatomyOrganMeta] (system + approximate position + neutral colour). The bundle is the artefact shipped in the desktop release resources and published for the web demo, so a fresh install / the online demo renders a real body with no per-user download.

This is a producer (used by the build_anatomy_pack example / CI), not a runtime path — it does blocking network I/O against the HRA endpoints.

Structs§

DiscoveredOrgan
A discovered organ: its CCF filename and its normalised base token.
PackReport
The result of building a pack — honest about what packed and what curated organ was not found/failed.

Constants§

CURATED_ORGAN_TOKENS
The default curated organ set — normalised base tokens (laterality/sex/.glb stripped). A representative spread across body systems, kept small so the pack is tens of MB. Discovery reports which of these were actually found.

Functions§

build_anatomy_pack
Build a curated .hmc pack for model and write it to out_path.
discover_model_organs
Discover every reference organ for a model (filename + normalised token). Useful for curating CURATED_ORGAN_TOKENS against what the HRA actually serves.