pub trait IsVolumeMesh<'a, T: IsPoint, N: IsUnitVector>:
GeometricPrimitive
+ HasVertices<'a, Vertex = T>
+ HasTetrahedra<'a, Point = T, Normal = N>
+ HasEdges{
// Required methods
fn tetrahedron_ids(&self) -> Box<dyn Iterator<Item = TetrahedronId> + '_>;
fn set_tetrahedron_id(
&mut self,
index: usize,
tetrahedron_id: TetrahedronId,
) -> Result<(), ErrorsJSL>;
fn volume(&self) -> GeometryMeasure;
// Provided methods
fn tetrahedron_count(&self) -> usize { ... }
fn tetrahedron(
&self,
index: usize,
) -> Option<<Self as HasTetrahedra<'a>>::Tetrahedron> { ... }
}Expand description
A volumetric mesh primitive with stored vertices and tetrahedral cells.
Required Methods§
Sourcefn tetrahedron_ids(&self) -> Box<dyn Iterator<Item = TetrahedronId> + '_>
fn tetrahedron_ids(&self) -> Box<dyn Iterator<Item = TetrahedronId> + '_>
Returns the ordered tetrahedron-table ids that participate in this mesh.
Sourcefn set_tetrahedron_id(
&mut self,
index: usize,
tetrahedron_id: TetrahedronId,
) -> Result<(), ErrorsJSL>
fn set_tetrahedron_id( &mut self, index: usize, tetrahedron_id: TetrahedronId, ) -> Result<(), ErrorsJSL>
Replaces the tetrahedron-table id at the given mesh cell position.
Sourcefn volume(&self) -> GeometryMeasure
fn volume(&self) -> GeometryMeasure
Returns the total enclosed volume of the mesh.
Provided Methods§
Sourcefn tetrahedron_count(&self) -> usize
fn tetrahedron_count(&self) -> usize
Returns the number of tetrahedra in the mesh.
Sourcefn tetrahedron(
&self,
index: usize,
) -> Option<<Self as HasTetrahedra<'a>>::Tetrahedron>
fn tetrahedron( &self, index: usize, ) -> Option<<Self as HasTetrahedra<'a>>::Tetrahedron>
Resolves and returns a tetrahedron by mesh-local position.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".