Expand description
The application chunks (SPEC.md, section 7.3): documents that belong to
one program, carried without being read.
The project settings chunk is the settings document itself. The supports and hollows chunks share one envelope: a list of entries, each about one model of the scene, naming one more part of it, and holding a document named by the generator that wrote it. In the supports chunk that part is the leaf that shows the supports; in the hollows chunk it is the mesh the model was hollowed from. The crate checks the envelope against the scene and never reads the documents: telling which generators and document versions it understands is up to the program.
entries u32 count, then per entry:
u32 the model leaf's node index in the scene chunk
u32 supports: the support leaf's node index
hollows: the original's mesh index
u32 length, UTF-8 generator name
u32 generator document version
u32 length, document bytesStructs§
- Hollow
Entry - How a program hollowed one model of the scene.
- Support
Entry - A program’s supports for one model of the scene.
Enums§
- Decode
Documents Error - Why a supports or hollows payload could not be decoded.
- Encode
Documents Error - Why a list of supports or hollows could not be encoded.
Constants§
- HOLLOWS_
TAG - The tag of the hollows chunk. Its models show the hollow.
- HOLLOWS_
VERSION - The hollows payload layout this build writes and reads.
- SETTINGS_
TAG - The tag of the project settings chunk, whose payload is the settings document: UTF-8 TOML that starts with its own version.
- SETTINGS_
VERSION - The project settings chunk version this build writes and reads.
- SUPPORTS_
TAG - The tag of the supports chunk. Its support leaves are stored with an empty mesh, which the generator rebuilds from the document.
- SUPPORTS_
VERSION - The supports payload layout this build writes and reads.
Functions§
- decode_
hollows - Decodes a hollows payload, checking it against
scene, the scene of the same file. - decode_
supports - Decodes a supports payload, checking it against
scene, the scene of the same file. - encode_
hollows - Encodes
hollowsas a hollows payload, checking them againstscene. - encode_
supports - Encodes
supportsas a supports payload, checking them againstscene.