pub enum Feature {
Hole {
faces: Vec<FaceId>,
diameter: Option<f64>,
},
Chamfer {
face: FaceId,
adjacent: (FaceId, FaceId),
angle: f64,
},
FilletLike {
face: FaceId,
area: f64,
},
Pocket {
floor: FaceId,
walls: Vec<FaceId>,
},
Pattern {
feature_indices: Vec<usize>,
pattern_type: PatternType,
count: usize,
spacing: Option<f64>,
},
}Expand description
A recognized geometric feature.
Variants§
Hole
A through-hole or blind hole.
Fields
Chamfer
A chamfer (bevel) face between two adjacent faces.
Fields
FilletLike
A small face that may be a fillet approximation.
A pocket (depression bounded by walls and a floor).
Pattern
A detected pattern of repeated features.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Feature
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnsafeUnpin for Feature
impl UnwindSafe for Feature
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more