pub struct ThreeMfWriteReport {
pub objects: usize,
pub triangles: usize,
pub vertices: usize,
pub degenerate_triangles: usize,
pub materials: usize,
pub colored_triangles: usize,
pub painted_triangles: usize,
pub first_paint_slot: usize,
pub paint_slots: usize,
pub unpainted_colors: usize,
pub bytes: usize,
}Expand description
What one written package contains — the counts a caller reports or asserts on.
Fields§
§objects: usize<object>s written (solids that kept at least one triangle).
triangles: usizeTriangles written, across every object.
vertices: usizeVertices written after welding, across every object.
degenerate_triangles: usizeTriangles dropped because welding collapsed two of their corners.
materials: usizeDistinct colours — <base> entries of the one <basematerials>.
colored_triangles: usizeTriangles carrying their own pid/p1, i.e. coloured unlike their body.
painted_triangles: usizeTriangles carrying slicer painting (slic3rpe:mmu_segmentation and
paint_color): every coloured triangle whose colour got a slot.
first_paint_slot: usizeThe first extruder slot the colours take: 1 when every written triangle is coloured, 2 when any is not (slot 1 is then the default extruder the uncoloured triangles print with).
paint_slots: usizeDistinct colours that got a slot: min(materials, MAX_PAINT_SLOTS + 1 - first_paint_slot).
unpainted_colors: usizeDistinct colours past the slot limit, written as base materials only.
bytes: usizeTotal package length in bytes.
Trait Implementations§
Source§impl Clone for ThreeMfWriteReport
impl Clone for ThreeMfWriteReport
impl Copy for ThreeMfWriteReport
Source§impl Debug for ThreeMfWriteReport
impl Debug for ThreeMfWriteReport
Source§impl Default for ThreeMfWriteReport
impl Default for ThreeMfWriteReport
impl Eq for ThreeMfWriteReport
Source§impl PartialEq for ThreeMfWriteReport
impl PartialEq for ThreeMfWriteReport
impl StructuralPartialEq for ThreeMfWriteReport
Auto Trait Implementations§
impl Freeze for ThreeMfWriteReport
impl RefUnwindSafe for ThreeMfWriteReport
impl Send for ThreeMfWriteReport
impl Sync for ThreeMfWriteReport
impl Unpin for ThreeMfWriteReport
impl UnsafeUnpin for ThreeMfWriteReport
impl UnwindSafe for ThreeMfWriteReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.