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§

source

fn vertex<I>(&self, i: I) -> VertexIndex

Index of the destination element given the topology index.

source

fn face_vertex<I>(&self, i: I, k: usize) -> Option<FaceVertexIndex>
where I: Copy + Into<FaceIndex>,

Toplogy index: where the data lives in an attribute array.

source

fn num_face_vertices(&self) -> usize

Topology quantifier. Number of connectors in total.

source

fn num_vertices_at_face<I>(&self, i: I) -> usize
where I: Copy + Into<FaceIndex>,

Topology quantifier. Number of connectors at a particular element.

Provided Methods§

source

fn face_to_vertex<I>(&self, i: I, k: usize) -> Option<VertexIndex>
where I: Copy + Into<FaceIndex>,

Index of the destination element from the source index.

source

fn reverse_topo(&self) -> (Vec<usize>, Vec<usize>)
where Self: NumFaces + NumVertices,

Generate the reverse topology structure.

source

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.

Implementors§