Skip to main content

acquire_body_assets

Function acquire_body_assets 

Source
pub fn acquire_body_assets(
    storage_root: impl AsRef<Path>,
    model: AnatomyModel,
    progress: impl FnMut(AcquireProgress),
) -> Result<AcquireReport, String>
Expand description

Acquire + cache the body assets for a model — user-triggered, blocking network I/O. Discovers the reference-organ manifest from the HRA SPARQL endpoint, fetches each GLB, compiles it to .10d, and writes both + a manifest to the cache. Progress is reported via progress per organ. Failed fetches/compiles are reported in the result, never silently dropped. The cache directory is created on demand; an existing cache is refreshed (re-fetched + re-compiled) so the person can update.