pub struct ThreeMfSolid {
pub name: String,
pub mesh: Mesh,
pub color: Option<[u8; 3]>,
pub face_colors: BTreeMap<u32, [u8; 3]>,
}Expand description
One solid to write: its display mesh plus the colours the document gave it.
Fields§
§name: StringThe scene name — becomes the <object name>.
mesh: MeshPositions / triangle indices, and the per-TRIANGLE face id the
face_colors keys match. Normals are not written. An empty face_ids
means “one group”.
color: Option<[u8; 3]>The body colour, 8-bit sRGB. None writes the object with no material.
face_colors: BTreeMap<u32, [u8; 3]>Per-face colour overrides, keyed by the face id in mesh.face_ids.
A face listed here wins over color for its own triangles.
Trait Implementations§
Source§impl Clone for ThreeMfSolid
impl Clone for ThreeMfSolid
Source§impl Debug for ThreeMfSolid
impl Debug for ThreeMfSolid
Auto Trait Implementations§
impl Forget for ThreeMfSolid
impl Freeze for ThreeMfSolid
impl RefUnwindSafe for ThreeMfSolid
impl Send for ThreeMfSolid
impl Sync for ThreeMfSolid
impl Unpin for ThreeMfSolid
impl UnsafeUnpin for ThreeMfSolid
impl UnwindSafe for ThreeMfSolid
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more