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>,
}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 leaf and kind, each document carried without being read.
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.