Struct vtk_format::dataset::UnstructuredGrid
source · [−]pub struct UnstructuredGrid {
pub points: Data3,
pub cells: Vec<Vec<u64>>,
pub cell_types: Vec<CellType>,
}Expand description
Unstructured Grid
The unstructured grid dataset consists of arbitrary combinations of any possible cell type.
Unstructured grids are defined by points, cells, and cell types.
The CELLS keyword requires two parameters: the number of cells n and the size of the cell list size.
The cell list size is the total number of integer values required to represent the list
(i.e., sum of numPoints and connectivity indices over each cell).
The CELL_TYPES keyword requires a single parameter: the number of cells n.
This value should match the value specified by the CELLS keyword.
The cell types data is a single integer value per cell that specified cell type (see vtkCell.h or Figure 2).
Fields
points: Data3cells: Vec<Vec<u64>>cell_types: Vec<CellType>Trait Implementations
sourceimpl Clone for UnstructuredGrid
impl Clone for UnstructuredGrid
sourcefn clone(&self) -> UnstructuredGrid
fn clone(&self) -> UnstructuredGrid
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for UnstructuredGrid
impl Debug for UnstructuredGrid
sourceimpl PartialEq<UnstructuredGrid> for UnstructuredGrid
impl PartialEq<UnstructuredGrid> for UnstructuredGrid
sourcefn eq(&self, other: &UnstructuredGrid) -> bool
fn eq(&self, other: &UnstructuredGrid) -> bool
sourceimpl PartialOrd<UnstructuredGrid> for UnstructuredGrid
impl PartialOrd<UnstructuredGrid> for UnstructuredGrid
sourcefn partial_cmp(&self, other: &UnstructuredGrid) -> Option<Ordering>
fn partial_cmp(&self, other: &UnstructuredGrid) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl StructuralPartialEq for UnstructuredGrid
Auto Trait Implementations
impl RefUnwindSafe for UnstructuredGrid
impl Send for UnstructuredGrid
impl Sync for UnstructuredGrid
impl Unpin for UnstructuredGrid
impl UnwindSafe for UnstructuredGrid
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more