#[non_exhaustive]pub struct Mesh {
pub vertices: Vec<P3>,
pub faces: Vec<[i32; 4]>,
pub m: u32,
pub n: u32,
pub closed_m: bool,
pub closed_n: bool,
}Expand description
POLYLINE as a polyface mesh (70 bit 64: faces of up to four vertices, an edge invisible where its index is negative) or a polygon mesh (70 bit 16: m by n vertices, closed in m or n)
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.vertices: Vec<P3>§faces: Vec<[i32; 4]>polyface: per face its vertex indices from 1 (negative: the edge from it is invisible; 0: none)
m: u32polygon mesh: its size and whether it closes
n: u32§closed_m: bool§closed_n: boolTrait Implementations§
impl StructuralPartialEq for Mesh
Auto Trait Implementations§
impl Forget for Mesh
impl Freeze for Mesh
impl Move for Mesh
impl RefUnwindSafe for Mesh
impl Send for Meshwhere
RawVecInner: Send,
impl Sync for Meshwhere
RawVecInner: Sync,
impl Unpin for Mesh
impl UnsafeUnpin for Meshwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<[f64; 3]>: UnsafeUnpin,
PhantomData<[i32; 4]>: UnsafeUnpin,
impl UnwindSafe for Meshwhere
RawVecInner: UnwindSafe,
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