Skip to main content

Module app

Module app 

Source
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 bytes

Structs§

HollowEntry
How a program hollowed one model of the scene.
SupportEntry
A program’s supports for one model of the scene.

Enums§

DecodeDocumentsError
Why a supports or hollows payload could not be decoded.
EncodeDocumentsError
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 hollows as a hollows payload, checking them against scene.
encode_supports
Encodes supports as a supports payload, checking them against scene.