#[non_exhaustive]pub struct VisibleRegion {
pub mesh: MeshId,
pub source: FaceSource,
pub outer: Vec<Point2>,
pub holes: Vec<Vec<Point2>>,
pub triangles: Vec<u32>,
}Expand description
A maximal region of the image where one source is frontmost.
Rings are counter-clockwise (outer) and clockwise (holes), start at their lexicographically smallest point and do not repeat it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mesh: MeshIdThe mesh the region belongs to.
source: FaceSourceThe group or cap the region belongs to.
outer: Vec<Point2>Outer boundary.
holes: Vec<Vec<Point2>>Holes, sorted lexicographically by their points.
triangles: Vec<u32>Indices of the mesh’s triangles that are frontmost somewhere in an
exact region this region was snapped from, ascending. A region that
snapping split at a pinch lists the whole set in each part. Empty for
FaceSource::Cap.
Implementations§
Trait Implementations§
Source§impl Clone for VisibleRegion
impl Clone for VisibleRegion
Source§fn clone(&self) -> VisibleRegion
fn clone(&self) -> VisibleRegion
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 VisibleRegion
impl Debug for VisibleRegion
Source§impl PartialEq for VisibleRegion
impl PartialEq for VisibleRegion
impl StructuralPartialEq for VisibleRegion
Auto Trait Implementations§
impl Freeze for VisibleRegion
impl RefUnwindSafe for VisibleRegion
impl Send for VisibleRegion
impl Sync for VisibleRegion
impl Unpin for VisibleRegion
impl UnsafeUnpin for VisibleRegion
impl UnwindSafe for VisibleRegion
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