Expand description
Compile a Mesh into a sealed .10d container (the dense compiled-geometry sidecar)
and read it back — the “mesh → .10d” step of the 3-D-anatomy asset pipeline.
Compile an imported triangle [Mesh] into a sealed .10d container — the
dense compiled-geometry half of a geometry asset (see
docs/manuals/standards/geometry-asset-ontology.md §3). This is the
“mesh → .10d” step of the 3-D-anatomy asset pipeline: the renderer and the
anatomy layer read the .10d back with [decode_10d_mesh] instead of
reparsing the source GLB, and the q42 semantic manifest cites the container’s
[compiled_digest].
Scope (honest): emits a QuantizedMesh section (u16-quantized
vertices in the bbox + u16/u32 indices). Optional Tensor10DNodes (D1),
provenance sidecars, and on native / wasm-scientific builds optional
Topology + SpatialIndex sections (C3) for scan-free picking. LOD chain
from decimate_3 remains a separate pre-compile step.
Structs§
- Compile10d
Extras - Optional extra sections for vision / recon seals (programme C3).
- Compiled
Asset - A fully compiled geometry asset: the source-imported
Mesh, the sealed.10dcontainer, its two content digests, and the q42 semantic manifest that cites the container bycompiledDigest(geometry-asset-ontology §1 two-layer model).
Enums§
- Compile10d
Error - Failure modes for
.10dcompilation and read-back.
Functions§
- compile_
asset - The end-to-end asset-compile step: source asset bytes →
CompiledAsset. - compile_
developmental_ asset - Like
compile_assetbut binds the compiled asset to a point on the developmentalt-axis — itsgestational_age_days(postfertilization) andcarnegie_stage. This is the compile step for a fetal/ embryonic stage: consecutive stages, ordered by gestational age, form a 4-D developmental body (the maternal–fetal dyad’s fetal side, reproductive-continuum plan §2). - compile_
mesh_ to_ 10d - Compile a mesh into a sealed
.10dcontainer holding oneQuantizedMeshsection. The whole-file CRC-32C is written (the container is self-verifying). - compile_
mesh_ to_ 10d_ vision - Vision recon seal: mesh + nodes + Topology + SpatialIndex when CG is linked (C3).
- compile_
mesh_ to_ 10d_ vision_ with_ provenance - Vision recon seal + in-envelope provenance (D4).
- compile_
mesh_ to_ 10d_ with_ extras - Full seal with explicit extras (topology / spatial index).
- compile_
mesh_ to_ 10d_ with_ nodes - Compile mesh + optional Tensor10D nodes (vision detections / σ paint fuel).
- compile_
mesh_ to_ 10d_ with_ nodes_ and_ provenance - Full vision/recon seal: mesh + nodes + optional provenance (no topology extras).
- compile_
mesh_ to_ 10d_ with_ provenance - Compile a mesh into a sealed
.10d, optionally bundling a provenance sidecar physically inside the container (P1) — the immutable source bytes + licence (+ optional VC) the asset was derived from, so context is byte-inseparable: a.10dcopied on its own still carries what it came from and under what licence. The renderer’s governance path treats the presence of this section as the attestation that makes the mesh citable (seerender/portal/mod.rs). - compile_
organ_ asset - Like
compile_assetbut also binds the compiled asset to a 3D-body organ: itsbody_system(which of the 17 systems colours it by burden) andanatomy_model("male"/"female", from the user’s declared XY/XX basis). This is the compile step for an anatomy organ mesh — the manifest it emits carriesgeo:bodySystem+geo:anatomyModelso the renderer can look the organ up in the per-system percept table (S5.1) and both colour and sonify it. - compiled_
digest - The
compiledDigesta q42 asset manifest cites: the container’s whole-file CRC-32C (computed with the header’s own CRC field zeroed, so it equals the sealed header value). Deterministic; changes on any geometry-byte change. - decode_
10d_ mesh - Read a
.10dcontainer back into a dequantizedMesh— the renderer / anatomy path that avoids reparsing the source GLB. Extracts the firstQuantizedMeshsection. - decode_
10d_ nodes - Read Tensor10D nodes from a sealed
.10d(first Tensor10DNodes section).