Trait genmesh::Indexer[][src]

pub trait Indexer<T> {
    fn index(&mut self, v: T) -> usize;
}

A trait defining how to defined an Indexer. An indexer is a object that collects verticies and emits indexes for the vertex. The intent is that an Indexer can find redundent vertexes and deduplicate them by returning aliased indexes.

Required Methods

convert a vertex into an index.

Implementors