Enum splashsurf_lib::mesh::TriangleOrQuadCell
source · pub enum TriangleOrQuadCell {
Tri([usize; 3]),
Quad([usize; 4]),
}
Expand description
Cell type for MixedTriQuadMesh3d
Variants§
Tri([usize; 3])
Vertex indices representing a triangle
Quad([usize; 4])
Vertex indices representing a quadrilateral
Trait Implementations§
source§impl CellConnectivity for TriangleOrQuadCell
impl CellConnectivity for TriangleOrQuadCell
source§fn expected_num_vertices() -> usize
fn expected_num_vertices() -> usize
Returns the expected number of vertices per cell (helpful for connectivities with a constant or upper bound on the number of vertices to reserve storage)
source§fn num_vertices(&self) -> usize
fn num_vertices(&self) -> usize
Returns the number of vertices per cell (may vary between cells)
source§fn vertices(&self) -> &[usize]
fn vertices(&self) -> &[usize]
Returns a reference to the vertex indices connected by this cell
source§fn vertices_mut(&mut self) -> &mut [usize]
fn vertices_mut(&mut self) -> &mut [usize]
Returns a reference to the vertex indices connected by this cell
source§impl Clone for TriangleOrQuadCell
impl Clone for TriangleOrQuadCell
source§fn clone(&self) -> TriangleOrQuadCell
fn clone(&self) -> TriangleOrQuadCell
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 TriangleOrQuadCell
impl Debug for TriangleOrQuadCell
source§impl HasVtkCellType for TriangleOrQuadCell
Available on crate feature vtk_extras
only.
impl HasVtkCellType for TriangleOrQuadCell
Available on crate feature
vtk_extras
only.source§fn vtk_cell_type(&self) -> CellType
fn vtk_cell_type(&self) -> CellType
Returns the corresponding
vtkio::model::CellType
of the cellAuto Trait Implementations§
impl RefUnwindSafe for TriangleOrQuadCell
impl Send for TriangleOrQuadCell
impl Sync for TriangleOrQuadCell
impl Unpin for TriangleOrQuadCell
impl UnwindSafe for TriangleOrQuadCell
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
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.