Skip to main content

Module preview

Module preview 

Source
Expand description

The support preview chunk (SPEC.md, section 9): for support leaves, which are stored with an empty mesh, the mesh of the supports as they were when the file was written, so that any reader can show them.

Each mesh is a whole mesh chunk payload, so it is checked, and kept, like any other mesh.

previews  u32 count, then per preview:
          u32 the support leaf's node index in the scene chunk
          u32 length, mesh chunk payload (version 1)

Structs§

SupportPreview
What a reader that skips the supports chunk can show for one support leaf.

Enums§

DecodePreviewsError
Why a support preview payload could not be decoded.
EncodePreviewsError
Why a list of support previews could not be encoded.

Constants§

SUPPORT_PREVIEW_TAG
The tag of the support preview chunk.
SUPPORT_PREVIEW_VERSION
The support preview payload layout this build writes and reads. It holds meshes of mesh chunk version 1.

Functions§

decode_previews
Decodes a support preview payload, checking it against scene, the scene of the same file.
encode_previews
Encodes previews as a support preview payload, checking them against scene.