Struct splashsurf_lib::mesh::MixedTriQuadMesh3d
source · pub struct MixedTriQuadMesh3d<R: Real> {
pub vertices: Vec<Vector3<R>>,
pub cells: Vec<TriangleOrQuadCell>,
}
Expand description
A surface mesh in 3D containing cells representing either triangles or quadrilaterals
Fields§
§vertices: Vec<Vector3<R>>
Coordinates of all vertices of the mesh
cells: Vec<TriangleOrQuadCell>
All triangle cells of the mesh
Trait Implementations§
source§impl<R: Clone + Real> Clone for MixedTriQuadMesh3d<R>
impl<R: Clone + Real> Clone for MixedTriQuadMesh3d<R>
source§fn clone(&self) -> MixedTriQuadMesh3d<R>
fn clone(&self) -> MixedTriQuadMesh3d<R>
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<R: Default + Real> Default for MixedTriQuadMesh3d<R>
impl<R: Default + Real> Default for MixedTriQuadMesh3d<R>
source§fn default() -> MixedTriQuadMesh3d<R>
fn default() -> MixedTriQuadMesh3d<R>
Returns the “default value” for a type. Read more
source§impl<R: Real> IntoVtkUnstructuredGridPiece for &MixedTriQuadMesh3d<R>
Available on crate feature vtk_extras
only.
impl<R: Real> IntoVtkUnstructuredGridPiece for &MixedTriQuadMesh3d<R>
Available on crate feature
vtk_extras
only.fn into_unstructured_grid(self) -> UnstructuredGridPiece
source§impl<R: Real> IntoVtkUnstructuredGridPiece for MixedTriQuadMesh3d<R>
Available on crate feature vtk_extras
only.
impl<R: Real> IntoVtkUnstructuredGridPiece for MixedTriQuadMesh3d<R>
Available on crate feature
vtk_extras
only.fn into_unstructured_grid(self) -> UnstructuredGridPiece
source§impl<R: Real> Mesh3d<R> for MixedTriQuadMesh3d<R>
impl<R: Real> Mesh3d<R> for MixedTriQuadMesh3d<R>
§type Cell = TriangleOrQuadCell
type Cell = TriangleOrQuadCell
The cell connectivity type of the mesh
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 cells(&self) -> &[TriangleOrQuadCell]
fn cells(&self) -> &[TriangleOrQuadCell]
Returns a slice of all cells of the mesh
source§fn from_vertices_and_connectivity(
vertices: Vec<Vector3<R>>,
cells: Vec<TriangleOrQuadCell>
) -> Self
fn from_vertices_and_connectivity( vertices: Vec<Vector3<R>>, cells: Vec<TriangleOrQuadCell> ) -> 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 MixedTriQuadMesh3d<R>where R: RefUnwindSafe,
impl<R> Send for MixedTriQuadMesh3d<R>
impl<R> Sync for MixedTriQuadMesh3d<R>
impl<R> Unpin for MixedTriQuadMesh3d<R>where R: Unpin,
impl<R> UnwindSafe for MixedTriQuadMesh3d<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.