Skip to main content

FixReport

Struct FixReport 

Source
pub struct FixReport {
Show 24 fields pub before: Diagnosis, pub after: Diagnosis, pub wires_reordered: usize, pub edges_collapsed: usize, pub gap_vertices_merged: usize, pub lacking_edges_made: usize, pub pole_edges_made: usize, pub edges_trimmed: usize, pub sewn: Option<(usize, usize)>, pub free_gaps_stated: usize, pub tolerances_reduced: usize, pub tolerances_widened: usize, pub faces_turned: usize, pub pcurve_gaps_stated: usize, pub curve_ends_stated: usize, pub tails_stripped: usize, pub notches_cut: usize, pub small_wires_removed: usize, pub crossings_trimmed: usize, pub faces_split_at_crossings: usize, pub crossings_left: usize, pub natural_bounds_made: usize, pub natural_bounds_marked: usize, pub free_bounds: FreeBounds,
}
Expand description

What fix_shape did, and what it found before and after.

Fields§

§before: Diagnosis

The diagnosis the shape came in with.

§after: Diagnosis

The diagnosis it leaves with. Not necessarily valid: what has no mend here is still reported.

§wires_reordered: usize

Wires whose edges were put end to end.

§edges_collapsed: usize

Edges collapsed to a vertex.

§gap_vertices_merged: usize

Vertices merged into the vertex beside them across a gap in a wire.

§lacking_edges_made: usize

Straight edges made across gaps in wires too wide for their vertices to merge.

§pole_edges_made: usize

Degenerate edges made where a boundary crosses a pole.

§edges_trimmed: usize

Edges given a pcurve on a face they bound.

§sewn: Option<(usize, usize)>

Edge pairs sewn, and edges still free after, when sewing ran.

§free_gaps_stated: usize

Pairs of loose faces’ free edges that are each other’s twin across a gap, widened to state it before sewing.

§tolerances_reduced: usize

Tolerances tightened.

§tolerances_widened: usize

Tolerances widened so that every vertex is at least as loose as the edges it bounds and every edge as the faces it bounds.

§faces_turned: usize

Faces turned the right way out: each faced into its solid’s material.

§pcurve_gaps_stated: usize

Edges widened to how far their pcurves stand off their curves.

§curve_ends_stated: usize

Vertices widened to how far the curves they bound end from them.

§tails_stripped: usize

Pairs of edges stripped from wires that ran out along one and straight back along the other.

§notches_cut: usize

Notches cut off: an edge run back along part of the edge before it, the shorter edge and the stretch of the longer it ran along gone.

§small_wires_removed: usize

Holes removed that enclosed no area the face’s tolerance resolves: every point of each within that tolerance of its boundary.

§crossings_trimmed: usize

Pairs of consecutive edges crossing short of the vertex they meet at, cut back to the crossing.

§faces_split_at_crossings: usize

Faces whose boundary crossed itself, split into its two loops.

§crossings_left: usize

Faces of the shape as mended whose boundary still crosses itself in its surface’s chart (chart_crossings).

§natural_bounds_made: usize

Faces with no wires bounded by the sides of their surface’s domain.

§natural_bounds_marked: usize

Faces with no wires marked as covering their whole surface, where the sides of its domain could not bound them.

§free_bounds: FreeBounds

The free edges of the shape as mended, chained into contours.

Trait Implementations§

Source§

impl Clone for FixReport

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FixReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.