pub struct GeodesicReport {
pub ink_cells: usize,
pub connected_cells: usize,
pub skeleton_cells: usize,
pub pieces: usize,
pub spine_length: u32,
}Expand description
Diagnostics describing how well a piece of art suits geodesic reveal.
Every field describes the structure the reveal actually follows. A low
connected_cells / ink_cells ratio means the ink is fragmented and the reveal
leans on the Voronoi inheritance; a pieces count above 1 means the skeleton
broke into strokes that are painted one after another.
Fields§
§ink_cells: usizeTotal ink cells in the art.
connected_cells: usizeSize of the largest strictly 8-connected component of the ink.
skeleton_cells: usizeCells remaining after thinning, i.e. the length of the drawn centerline.
pieces: usizeSeparate pieces the skeleton breaks into once bridging has been applied. Each is traced in turn, in reading order along the dominant axis.
spine_length: u32Longest geodesic through the largest skeleton piece, in cells: the spine the reveal actually traces.
Trait Implementations§
Source§impl Clone for GeodesicReport
impl Clone for GeodesicReport
Source§fn clone(&self) -> GeodesicReport
fn clone(&self) -> GeodesicReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GeodesicReport
Source§impl Debug for GeodesicReport
impl Debug for GeodesicReport
impl Eq for GeodesicReport
Source§impl PartialEq for GeodesicReport
impl PartialEq for GeodesicReport
impl StructuralPartialEq for GeodesicReport
Auto Trait Implementations§
impl Freeze for GeodesicReport
impl RefUnwindSafe for GeodesicReport
impl Send for GeodesicReport
impl Sync for GeodesicReport
impl Unpin for GeodesicReport
impl UnsafeUnpin for GeodesicReport
impl UnwindSafe for GeodesicReport
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