Expand description
The volume chunk (SPEC.md, section 14): meshes that belong to a model
and act on it without being printed. Support enforcers and blockers,
modifiers, and negative volumes, which the model’s leaf shows already cut,
with the model as it was before the cut beside them.
A volume’s mesh is shown by no leaf, so a reader that skips the chunk never prints it. Reserved kinds are carried as they are: a program treats them as absent. How volumes agree with the supports, hollows and roles is checked where the whole file is read and written.
entries u32 count, then per entry:
u32 the model's leaf, as a node index in the scene chunk
u8 the kind: 1 support enforcer, 2 support blocker,
3 modifier, 4 negative volume, 5 the model before the cut
u32 the entry's mesh, as a mesh index
optional string, the entry's name
u8 has transform; then twelve f64 when it is 1
byte string, the name of the program the entry belongs to
u32 the program's version of the document
byte string, the documentStructs§
- Volume
Entry - One entry of the volume chunk.
Enums§
- Decode
Volumes Error - Why a volume payload could not be decoded.
- Encode
Volumes Error - Why a list of volumes could not be encoded.
Constants§
- VOLUME_
MODIFIER - Inside the volume, the model prints with the settings of the document.
- VOLUME_
NEGATIVE - The volume was cut away from the model, whose leaf shows it already cut.
- VOLUME_
SUPPORT_ BLOCKER - No support touches the model’s surface inside the volume.
- VOLUME_
SUPPORT_ ENFORCER - Supports go where the model’s surface inside the volume needs them.
- VOLUME_
TAG - The tag of the volume chunk.
- VOLUME_
UNCUT - The model’s mesh before its negative volumes were cut away.
- VOLUME_
VERSION - The volume payload layout this build writes and reads.
Functions§
- decode_
volumes - Decodes a volume payload, checking it against
scene, the scene of the same file. - encode_
volumes - Encodes
entriesas a volume payload, in their order, checking them againstscene.