#[non_exhaustive]pub struct DetectedPlane {
pub triangles: Vec<u32>,
pub point: Point3,
pub normal: Vec3,
pub deviation: f64,
pub coplanar: bool,
pub area: f64,
}Expand description
One planar region.
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.triangles: Vec<u32>Member triangle indices, ascending.
point: Point3A point of the plane: the members’ area-weighted centroid.
normal: Vec3Unit normal (to rounding), the members’ area-weighted mean, on the side the triangles face.
deviation: f64A certified upper bound on the distance of any member corner from
the plane through point with normal normal: at most the
requested distance plus a few ulps of the region’s coordinates (a
lone triangle’s is its own rounding).
coplanar: boolWhether every member corner lies on one plane exactly.
area: f64Summed area of the members (rounded).
Trait Implementations§
Source§impl Clone for DetectedPlane
impl Clone for DetectedPlane
Source§fn clone(&self) -> DetectedPlane
fn clone(&self) -> DetectedPlane
Returns a copy of the value. Read more
1.0.0 · 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 DetectedPlane
impl Debug for DetectedPlane
Source§impl PartialEq for DetectedPlane
impl PartialEq for DetectedPlane
impl StructuralPartialEq for DetectedPlane
Auto Trait Implementations§
impl Freeze for DetectedPlane
impl RefUnwindSafe for DetectedPlane
impl Send for DetectedPlane
impl Sync for DetectedPlane
impl Unpin for DetectedPlane
impl UnwindSafe for DetectedPlane
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