Struct splashsurf_lib::mesh::HexMesh3d
source · pub struct HexMesh3d<R: Real> {
pub vertices: Vec<Vector3<R>>,
pub cells: Vec<[usize; 8]>,
}
Expand description
A hexahedral (volumetric) mesh in 3D
Fields§
§vertices: Vec<Vector3<R>>
Coordinates of all vertices of the mesh
cells: Vec<[usize; 8]>
The hexahedral cells of the mesh identified by their vertex indices
Trait Implementations§
source§impl<R: Real> IntoVtkUnstructuredGridPiece for &HexMesh3d<R>
Available on crate feature vtk_extras
only.
impl<R: Real> IntoVtkUnstructuredGridPiece for &HexMesh3d<R>
Available on crate feature
vtk_extras
only.fn into_unstructured_grid(self) -> UnstructuredGridPiece
source§impl<R: Real> IntoVtkUnstructuredGridPiece for HexMesh3d<R>
Available on crate feature vtk_extras
only.
impl<R: Real> IntoVtkUnstructuredGridPiece for HexMesh3d<R>
Available on crate feature
vtk_extras
only.fn into_unstructured_grid(self) -> UnstructuredGridPiece
source§impl<R: Real> Mesh3d<R> for HexMesh3d<R>
impl<R: Real> Mesh3d<R> for HexMesh3d<R>
source§fn vertices_mut(&mut self) -> &mut [Vector3<R>]
fn vertices_mut(&mut self) -> &mut [Vector3<R>]
Returns a mutable slice of all vertices of the mesh
source§fn from_vertices_and_connectivity(
vertices: Vec<Vector3<R>>,
cells: Vec<HexCell>
) -> Self
fn from_vertices_and_connectivity( vertices: Vec<Vector3<R>>, cells: Vec<HexCell> ) -> Self
Constructs a mesh from the given vertices and connectivity (does not check inputs for validity)
source§fn vertex_vertex_connectivity(&self) -> Vec<Vec<usize>>
fn vertex_vertex_connectivity(&self) -> Vec<Vec<usize>>
Returns a mapping of all mesh vertices to the set of their connected neighbor vertices
source§fn vertex_cell_connectivity(&self) -> Vec<Vec<usize>>
fn vertex_cell_connectivity(&self) -> Vec<Vec<usize>>
Returns a mapping of all mesh vertices to the set of the cells they belong to
source§fn keep_cells(&self, cell_indices: &[usize], keep_vertices: bool) -> Self
fn keep_cells(&self, cell_indices: &[usize], keep_vertices: bool) -> Self
Returns a new mesh containing only the specified cells and removes all unreferenced vertices
Auto Trait Implementations§
impl<R> RefUnwindSafe for HexMesh3d<R>where R: RefUnwindSafe,
impl<R> Send for HexMesh3d<R>
impl<R> Sync for HexMesh3d<R>
impl<R> Unpin for HexMesh3d<R>where R: Unpin,
impl<R> UnwindSafe for HexMesh3d<R>where R: 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
source§impl<T> IntoVtkDataSet for Twhere
T: IntoVtkUnstructuredGridPiece,
impl<T> IntoVtkDataSet for Twhere T: IntoVtkUnstructuredGridPiece,
source§fn into_dataset(self) -> DataSet
fn into_dataset(self) -> DataSet
Available on crate feature
vtk_extras
only.§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.