Skip to main content

IsVolumeMesh

Trait IsVolumeMesh 

Source
pub trait IsVolumeMesh<'a, T: IsPoint, N: IsUnitVector>:
    GeometricPrimitive
    + HasVertices<'a, Vertex = T>
    + HasTetrahedra<'a, Point = T, Normal = N>
    + HasEdges
where <Self as HasEdges>::Edge: IsLine<'a, T>,
{ // 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§

Source

fn tetrahedron_ids(&self) -> Box<dyn Iterator<Item = TetrahedronId> + '_>

Returns the ordered tetrahedron-table ids that participate in this mesh.

Source

fn set_tetrahedron_id( &mut self, index: usize, tetrahedron_id: TetrahedronId, ) -> Result<(), ErrorsJSL>

Replaces the tetrahedron-table id at the given mesh cell position.

Source

fn volume(&self) -> GeometryMeasure

Returns the total enclosed volume of the mesh.

Provided Methods§

Source

fn tetrahedron_count(&self) -> usize

Returns the number of tetrahedra in the mesh.

Source

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".

Implementors§