pub struct RepairResult {
pub brep_blob: Vec<u8>,
pub face_colors: Vec<[f32; 3]>,
pub mesh: TriMesh,
pub bounds_mm: Option<([f32; 3], [f32; 3])>,
pub health: ShapeHealth,
pub mended: Vec<String>,
}Expand description
A shape run through the kernel’s repair: the mended snapshot, its mesh, what the repair did, and what the checker finds afterwards.
Fields§
§brep_blob: Vec<u8>Native-format snapshot of the mended shape.
face_colors: Vec<[f32; 3]>Per-face colours for the mended shape, in its face order; empty when the repair changed the faces too much to carry them over.
mesh: TriMeshRender mesh of the mended shape.
bounds_mm: Option<([f32; 3], [f32; 3])>Axis-aligned bounds in millimetres.
health: ShapeHealthThe checker’s findings on the mended shape, marked repaired.
mended: Vec<String>What was mended, a phrase each (“12 tolerances tightened”).
Trait Implementations§
Source§impl Clone for RepairResult
impl Clone for RepairResult
Source§impl Debug for RepairResult
impl Debug for RepairResult
Auto Trait Implementations§
impl Freeze for RepairResult
impl RefUnwindSafe for RepairResult
impl Send for RepairResult
impl Sync for RepairResult
impl Unpin for RepairResult
impl UnsafeUnpin for RepairResult
impl UnwindSafe for RepairResult
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