pub struct BreadFile {
pub scene: Scene,
pub settings: Option<Vec<u8>>,
pub supports: Vec<SupportEntry>,
pub hollows: Vec<HollowEntry>,
pub thumbnail: Option<Vec<u8>>,
pub support_previews: Vec<SupportPreview>,
pub surface: Vec<SurfaceEntry>,
pub roles: Vec<RoleEntry>,
pub metadata: Vec<MetadataEntry>,
pub volumes: Vec<VolumeEntry>,
pub program_data: Vec<ProgramEntry>,
pub other_chunks: Vec<Chunk>,
}Expand description
What a .bread file holds.
Fields§
§scene: SceneThe scene and its meshes.
settings: Option<Vec<u8>>The project settings document, carried without being read.
supports: Vec<SupportEntry>Supports kept as data. Their support leaves show an empty mesh.
hollows: Vec<HollowEntry>How hollowed models were made. Their leaves show the hollow.
thumbnail: Option<Vec<u8>>A small picture of the file: a PNG, at most 512 x 512 and best 256 x 256, in sRGB. It is carried without being read: the PNG is neither checked nor decoded.
support_previews: Vec<SupportPreview>The mesh of the supports, for readers that do not rebuild them from
their documents. Each preview names the support leaf of an entry of
supports. A program that edits the supports writes new previews, or
none.
surface: Vec<SurfaceEntry>What was painted on the faces of leaves: one mask per program, leaf and kind, each document carried without being read. A program changes and drops only its own entries. Entries read from chunk version 1 name no program, and must be given one before the file is written.
roles: Vec<RoleEntry>The leaves that are not models: supports or a raft. A support leaf of
supports is supports whether it is listed here or not.
metadata: Vec<MetadataEntry>Who made the file, how it may be used, and lasting ids for its parts. Reading leaves out what breaks a rule of section 12, so metadata never makes a file unreadable.
volumes: Vec<VolumeEntry>Meshes that act on a model without printing: support enforcers and blockers, modifiers, and negative volumes with the model before the cut. No leaf shows a volume’s mesh.
program_data: Vec<ProgramEntry>Each program’s own documents, about the whole file or one node, each carried without being read (section 13).
other_chunks: Vec<Chunk>The chunks this build does not know, official or private, as they were read, in their order. Writing writes them back last. A program keeps them, unless it removes or renumbers nodes or meshes: then it may clear them, since they may name nodes or meshes by an index that changed (section 7.4).