Trait meshx::mesh::topology::FaceVertex
source · pub trait FaceVertex {
// Required methods
fn vertex<I>(&self, i: I) -> VertexIndex
where I: Copy + Into<FaceVertexIndex>;
fn face_vertex<I>(&self, i: I, k: usize) -> Option<FaceVertexIndex>
where I: Copy + Into<FaceIndex>;
fn num_face_vertices(&self) -> usize;
fn num_vertices_at_face<I>(&self, i: I) -> usize
where I: Copy + Into<FaceIndex>;
// Provided methods
fn face_to_vertex<I>(&self, i: I, k: usize) -> Option<VertexIndex>
where I: Copy + Into<FaceIndex> { ... }
fn reverse_topo(&self) -> (Vec<usize>, Vec<usize>)
where Self: NumFaces + NumVertices { ... }
fn reverse_source_topo(&self) -> (Vec<usize>, Vec<usize>)
where Self: NumVertices { ... }
}
Required Methods§
sourcefn vertex<I>(&self, i: I) -> VertexIndex
fn vertex<I>(&self, i: I) -> VertexIndex
Index of the destination element given the topology index.
sourcefn face_vertex<I>(&self, i: I, k: usize) -> Option<FaceVertexIndex>
fn face_vertex<I>(&self, i: I, k: usize) -> Option<FaceVertexIndex>
Toplogy index: where the data lives in an attribute array.
sourcefn num_face_vertices(&self) -> usize
fn num_face_vertices(&self) -> usize
Topology quantifier. Number of connectors in total.
Provided Methods§
sourcefn face_to_vertex<I>(&self, i: I, k: usize) -> Option<VertexIndex>
fn face_to_vertex<I>(&self, i: I, k: usize) -> Option<VertexIndex>
Index of the destination element from the source index.
sourcefn reverse_topo(&self) -> (Vec<usize>, Vec<usize>)where
Self: NumFaces + NumVertices,
fn reverse_topo(&self) -> (Vec<usize>, Vec<usize>)where
Self: NumFaces + NumVertices,
Generate the reverse topology structure.
sourcefn reverse_source_topo(&self) -> (Vec<usize>, Vec<usize>)where
Self: NumVertices,
fn reverse_source_topo(&self) -> (Vec<usize>, Vec<usize>)where
Self: NumVertices,
Generate the reverse topology structure from the destination element to the source topology element.
For example the reverse_source_topo
for face->vertex
is
vetex->(face->vertex)
, where face->vertex
is the ‘source’ of the original
topology.
Object Safety§
This trait is not object safe.