Skip to main content

DeviationPath

Enum DeviationPath 

Source
#[non_exhaustive]
pub enum DeviationPath {
Show 21 variants AuthoredMesh, Extrusion, Revolution, TaperedExtrusion, TaperedRevolution, SweptDisk, FixedReferenceSweep, SurfaceCurveSweep, SectionedSpine, BoundedHalfSpace, Primitive, BRepFace, CurveBoundedPlane, Boolean, Unreported, StationedSpine, SectionedSurface, StationPlacement, TrimmedSurface, Placement, RuledSurface,
}
Expand description

The construction path a part of the mesh came from.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

AuthoredMesh

An authored triangle or polygon mesh.

§

Extrusion

A linear extrusion of a profile.

§

Revolution

A revolution of a profile.

§

TaperedExtrusion

An extrusion between two profiles.

§

TaperedRevolution

A revolution between two profiles.

§

SweptDisk

A disk swept along a directrix.

§

FixedReferenceSweep

A profile swept with a fixed reference direction.

§

SurfaceCurveSweep

A profile swept along a curve on a surface.

§

SectionedSpine

Sections placed along a spine.

§

BoundedHalfSpace

A half-space bounded by a polygon or a profile.

§

Primitive

A CSG primitive.

§

BRepFace

A face of a B-rep.

§

CurveBoundedPlane

A plane trimmed by boundary curves.

§

Boolean

A boolean of two meshes, measured against its exact result (#235).

An operand’s own bound does not compose into it as a one-sided bound: a boolean is measured, not derived. A warped operand (#266) enters as a two-sided perturbation: the exact result is the boolean of the operands flattened to their triangles, each within its slab width w of every reading, and the contribution is the measured distance plus the largest w (see the module’s “Warped operands”).

A measured boolean whose exact result is all planar has two contributions under this path (#329): the exact result to the mesh, and the mesh to the exact result (MESH_TO_EXACT), so extra material in the mesh is reported.

§

Unreported

A path that does not report its deviation.

§

StationedSpine

Sections standing at stations along a directrix (#241).

§

SectionedSurface

Open sections at stations joined by tag (#241).

§

StationPlacement

A node placed in the frame of a curve station (#264), on a basis whose frame is not exact: DeviationBound::Certified by how far the placement may lie from the exact one (#405), or DeviationBound::Unbounded by name.

§

TrimmedSurface

A surface trimmed by a parameter rectangle (#311).

§

Placement

The rounding of moving an instance’s vertices with its f64 transform (#295), an Instance or an InstanceAtStation: an absolute term every other contribution of the instance also carries, named under PLACEMENT_ROUNDING so the report shows it.

§

RuledSurface

A surface ruled between two sides (#402).

Trait Implementations§

Source§

impl Clone for DeviationPath

Source§

fn clone(&self) -> DeviationPath

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 Copy for DeviationPath

Source§

impl Debug for DeviationPath

Source§

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

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

impl Eq for DeviationPath

Source§

impl Hash for DeviationPath

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for DeviationPath

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for DeviationPath

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
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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.