#[non_exhaustive]pub struct LayerCut {
pub normal: [f64; 3],
pub boundaries: Vec<f64>,
}Expand description
A stack of parallel planes in a product’s object frame.
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.normal: [f64; 3]Unit normal of the planes.
boundaries: Vec<f64>n + 1 signed distances along normal from the object origin,
metres, non-decreasing (equal where a layer is zero-thick).
Implementations§
Trait Implementations§
Source§impl From<&LayerBoundaries> for LayerCut
impl From<&LayerBoundaries> for LayerCut
Source§fn from(bounds: &LayerBoundaries) -> Self
fn from(bounds: &LayerBoundaries) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for LayerCut
Auto Trait Implementations§
impl Freeze for LayerCut
impl RefUnwindSafe for LayerCut
impl Send for LayerCut
impl Sync for LayerCut
impl Unpin for LayerCut
impl UnsafeUnpin for LayerCut
impl UnwindSafe for LayerCut
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