pub struct FaceMatch {
pub block1: FaceRecord,
pub block2: FaceRecord,
pub points: Vec<MatchPoint>,
pub orientation: Option<Orientation>,
}Expand description
Aggregates the matching data between two faces.
Each entry stores the corner ranges (on both blocks) and every coincident node that was found for that interface.
Fields§
§block1: FaceRecord§block2: FaceRecord§points: Vec<MatchPoint>§orientation: Option<Orientation>Orientation relationship between block1 and block2 faces.
None for legacy code paths or partial matches where orientation
was not detected.
Implementations§
Source§impl FaceMatch
impl FaceMatch
Sourcepub fn divide_indices(&mut self, divisor: usize)
pub fn divide_indices(&mut self, divisor: usize)
Downscale both participating face records by divisor.
Note: MatchPoints are NOT scaled — they may be from full-resolution
Phase 2/3 matching and should only be used with full-resolution blocks.
Sourcepub fn scale_indices(&mut self, factor: usize)
pub fn scale_indices(&mut self, factor: usize)
Upscale both participating face records by factor.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FaceMatch
impl RefUnwindSafe for FaceMatch
impl Send for FaceMatch
impl Sync for FaceMatch
impl Unpin for FaceMatch
impl UnsafeUnpin for FaceMatch
impl UnwindSafe for FaceMatch
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