Trait gut::CellVertex [−][src]
pub trait CellVertex {
fn vertex<I>(&self, i: I) -> VertexIndex
where
I: Copy + Into<CellVertexIndex>;
fn cell_vertex<I>(&self, i: I, k: usize) -> Option<CellVertexIndex>
where
I: Copy + Into<CellIndex>;
fn num_cell_vertices(&self) -> usize;
fn num_vertices_at_cell<I>(&self, i: I) -> usize
where
I: Copy + Into<CellIndex>;
fn cell_to_vertex<I>(&self, i: I, k: usize) -> Option<VertexIndex>
where
I: Copy + Into<CellIndex>,
{ ... }
fn reverse_topo(&self) -> (Vec<usize, Global>, Vec<usize, Global>)
where
Self: NumCells + NumVertices,
{ ... }
fn reverse_source_topo(&self) -> (Vec<usize, Global>, Vec<usize, Global>)
where
Self: NumVertices,
{ ... }
}
Required methods
fn vertex<I>(&self, i: I) -> VertexIndex where
I: Copy + Into<CellVertexIndex>,
fn vertex<I>(&self, i: I) -> VertexIndex where
I: Copy + Into<CellVertexIndex>,
Index of the destination element given the topology index.
fn cell_vertex<I>(&self, i: I, k: usize) -> Option<CellVertexIndex> where
I: Copy + Into<CellIndex>,
fn cell_vertex<I>(&self, i: I, k: usize) -> Option<CellVertexIndex> where
I: Copy + Into<CellIndex>,
Toplogy index: where the data lives in an attribute array.
fn num_cell_vertices(&self) -> usize
fn num_cell_vertices(&self) -> usize
Topology quantifier. Number of connectors in total.
Provided methods
fn cell_to_vertex<I>(&self, i: I, k: usize) -> Option<VertexIndex> where
I: Copy + Into<CellIndex>,
fn cell_to_vertex<I>(&self, i: I, k: usize) -> Option<VertexIndex> where
I: Copy + Into<CellIndex>,
Index of the destination element from the source index.
Generate the reverse topology structure.
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.