Trait gut::ElementIndex[][src]

pub trait ElementIndex<T>: Copy + Clone + PartialEq<Self> + PartialOrd<Self> + Eq + Ord + From<T> + Into<T> + Add<Self, Output = Self, Output = Self> + Add<T> + Sub<Self, Output = Self, Output = Self> + Sub<T> + Mul<T, Output = Self> + Div<T, Output = Self> + Rem<T, Output = Self> { }
Expand description

The general structure of all types of mesh topologies is the mapping from one mesh component (like a face) to another (like a vertex). One may implement any data layout convenient for them but the interface shall remain the same. In 3D a mesh can consist of: cells (3D volumes), faces (2D surfaces), edges (1D curves) and vertices (0D points) Topology defines the mapping between each of these components This trait identifies all indices that identify a particular element in a mesh, whether it is a vertex or a triangle, or even a connectivity between triangles and vertices like a triangle-vertex.

Implementors