pub struct EvolutionMap {
pub modified: HashMap<usize, Vec<usize>>,
pub generated: HashMap<usize, Vec<usize>>,
pub deleted: HashSet<usize>,
}Expand description
Tracks how faces evolve through a modeling operation.
After a boolean, fillet, or other operation, this map records:
- modified: input face -> output faces that replace it
- generated: input face -> new faces created adjacent to it
- deleted: input faces that were completely removed
Fields§
§modified: HashMap<usize, Vec<usize>>Input face -> output faces that are modified versions of it.
generated: HashMap<usize, Vec<usize>>Input face -> new faces generated from it (e.g., blend faces from fillet).
deleted: HashSet<usize>Input faces that were completely removed.
Implementations§
Source§impl EvolutionMap
impl EvolutionMap
Sourcepub fn add_modified(&mut self, input: usize, output: usize)
pub fn add_modified(&mut self, input: usize, output: usize)
Record that input was modified into output.
Sourcepub fn add_generated(&mut self, input: usize, output: usize)
pub fn add_generated(&mut self, input: usize, output: usize)
Record that output was generated from input.
Sourcepub fn add_deleted(&mut self, input: usize)
pub fn add_deleted(&mut self, input: usize)
Record that input was deleted.
Trait Implementations§
Source§impl Clone for EvolutionMap
impl Clone for EvolutionMap
Source§fn clone(&self) -> EvolutionMap
fn clone(&self) -> EvolutionMap
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 moreSource§impl Debug for EvolutionMap
impl Debug for EvolutionMap
Source§impl Default for EvolutionMap
impl Default for EvolutionMap
Source§fn default() -> EvolutionMap
fn default() -> EvolutionMap
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EvolutionMap
impl RefUnwindSafe for EvolutionMap
impl Send for EvolutionMap
impl Sync for EvolutionMap
impl Unpin for EvolutionMap
impl UnsafeUnpin for EvolutionMap
impl UnwindSafe for EvolutionMap
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