pub struct Compaction {
pub geometry: Geometry,
pub points: Vec<usize>,
pub cells: Vec<usize>,
pub dropped_points: usize,
pub dropped_cells: usize,
}Expand description
A geometry with its undefined nodes removed, and the maps to follow it.
The maps are in merged order - the order Geometry::merged and
Geometry::cell_count produce, patch after patch - because that is the
order an attribute’s values are in.
Fields§
§geometry: GeometryThe geometry, with undefined nodes and everything touching them gone.
points: Vec<usize>For each surviving point, its index in the original merged order.
cells: Vec<usize>For each surviving cell, its index in the original cell order.
dropped_points: usizeHow many nodes had no position.
dropped_cells: usizeHow many cells touched one.
Trait Implementations§
Source§impl Clone for Compaction
impl Clone for Compaction
Source§impl Debug for Compaction
impl Debug for Compaction
Source§impl PartialEq for Compaction
impl PartialEq for Compaction
impl StructuralPartialEq for Compaction
Auto Trait Implementations§
impl Freeze for Compaction
impl RefUnwindSafe for Compaction
impl Send for Compaction
impl Sync for Compaction
impl Unpin for Compaction
impl UnsafeUnpin for Compaction
impl UnwindSafe for Compaction
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