Enum GeometricDefect

Source
pub enum GeometricDefect {
    VertexOffCurve {
        edge: usize,
        error: Scalar,
    },
    PcurveOffCurve {
        loop_id: usize,
        use_index: usize,
        error: Scalar,
    },
    UnevaluableCurve {
        edge: usize,
    },
    UnevaluablePcurve {
        loop_id: usize,
        use_index: usize,
    },
    UnevaluableSurface {
        loop_id: usize,
        use_index: usize,
    },
}
Expand description

One geometric inconsistency, with enough detail to locate it.

Variants§

§

VertexOffCurve

An edge endpoint does not lie on the edge’s own 3D curve.

Fields

§edge: usize

Index of the offending edge.

§error: Scalar

Distance from the vertex to the curve point, in model units.

§

PcurveOffCurve

A pcurve, lifted through its face surface, does not follow the edge.

This is the defect a purely topological audit cannot see: the trim curve resolves and the loop closes, but the face boundary runs somewhere other than the edge it claims to trim.

Fields

§loop_id: usize

Index of the owning loop.

§use_index: usize

Position of the edge use within that loop.

§error: Scalar

Worst sampled deviation, in model units.

§

UnevaluableCurve

An edge’s 3D curve could not be evaluated on its stated interval.

Fields

§edge: usize

Index of the offending edge.

§

UnevaluablePcurve

A pcurve could not be evaluated on its stated interval.

Fields

§loop_id: usize

Index of the owning loop.

§use_index: usize

Position of the edge use within that loop.

§

UnevaluableSurface

A face surface could not be evaluated at a pcurve sample.

Fields

§loop_id: usize

Index of the owning loop.

§use_index: usize

Position of the edge use within that loop.

Trait Implementations§

Source§

impl Clone for GeometricDefect

Source§

fn clone(&self) -> GeometricDefect

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for GeometricDefect

Source§

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

Formats the value using the given formatter. Read more
Source§

impl PartialEq for GeometricDefect

Source§

fn eq(&self, other: &GeometricDefect) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for GeometricDefect

Source§

impl StructuralPartialEq for GeometricDefect

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> 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.