gfx.genmesh.algorithm

Undocumented in source.

Members

Functions

eachTriangle
void eachTriangle(FT face)

eagerly call 'fun' for each triangle of the passed face

eachVertex
void eachVertex(FT face)

eagerly call 'fun' for each vertex of the passed face

index
auto index(VR vertexInRange, VOR vertexOutRange, Indexer indexer)

Index the input vertex range into a range of indices with the given Indexer. The shared vertices will be put into the given output range. (each vertex is given once)

indexCollectMesh
auto indexCollectMesh(VR vertexRange, Indexer indexer)

eagerly index all vertices in the given range and collect them into a struct that has an indices array member and a vertices array member

triangulate
auto triangulate(FR faceRange)

turn a range of undertermined face type into a range of triangles

vertexMap
auto vertexMap(FT face)

map a single face to another face of same shape with all elements mapped by the passed function. element type of returned face can differ from element type in input face

vertexMap
auto vertexMap(FR faceRange)

map a range of face to another range of face where each vertex is mapped (and whose type might change)

vertices
auto vertices(FR faceRange)

turn a range of undertermined face type into a range of vertices

Structs

LruIndexer
struct LruIndexer(IT, VT)

least recently used indexer

Templates

isIndexer
template isIndexer(Indexer)
Undocumented in source.

Meta