VertexCacheOptimizer
Functions
- buildTriangleAdjacency(adjacency, indices, index_count, vertex_count)
- getNextVertexDeadEnd(dead_end, dead_end_top, input_cursor, live_triangles, vertex_count) ⇒
number
- getNextVertexNeighbour(candidates, next_candidates_begin, next_candidates_end, live_triangles, cache_timestamps, timestamp, cache_size) ⇒
number
- vertexScore(table, cache_position, live_triangles) ⇒
number
- getNextTriangleDeadEnd(input_cursor, emitted_flags, face_count) ⇒
number
- meshopt_optimizeVertexCacheTable(destination, indices, index_count, vertex_count, table)
- meshopt_optimizeVertexCache(destination, indices, index_count, vertex_count)
- meshopt_optimizeVertexCacheStrip(destination, indices, index_count, vertex_count)
buildTriangleAdjacency(adjacency, indices, index_count, vertex_count)
Kind: global function
Param | Type |
---|---|
adjacency | TriangleAdjacency |
indices | Array.<number> | Uint32Array |
index_count | number |
vertex_count | number |
getNextVertexDeadEnd(dead_end, dead_end_top, input_cursor, live_triangles, vertex_count) ⇒ number
Kind: global function
Returns: number
- -1 if not found
Param | Type |
---|---|
dead_end | Array.<number> |
dead_end_top | number |
input_cursor | number |
live_triangles | Array.<number> |
vertex_count | number |
getNextVertexNeighbour(candidates, next_candidates_begin, next_candidates_end, live_triangles, cache_timestamps, timestamp, cache_size) ⇒ number
Kind: global function
Returns: number
- -1 if no candidate found
Param | Type |
---|---|
candidates | Array.<number> |
next_candidates_begin | number |
next_candidates_end | number |
live_triangles | Array.<number> |
cache_timestamps | Array.<number> |
timestamp | number |
cache_size | number |
vertexScore(table, cache_position, live_triangles) ⇒ number
Kind: global function
Param | Type |
---|---|
table | VertexScoreTable |
cache_position | number |
live_triangles | number |
getNextTriangleDeadEnd(input_cursor, emitted_flags, face_count) ⇒ number
Kind: global function
Param | Type |
---|---|
input_cursor | number |
emitted_flags | Uint8Array |
face_count | number |
meshopt_optimizeVertexCacheTable(destination, indices, index_count, vertex_count, table)
Kind: global function
Param | Type |
---|---|
destination | Array.<number> | Uint32Array |
indices | Array.<number> | Uint32Array |
index_count | number |
vertex_count | number |
table | VertexScoreTable |
meshopt_optimizeVertexCache(destination, indices, index_count, vertex_count)
Kind: global function
Param | Type |
---|---|
destination | Array.<number> | Uint32Array |
indices | Array.<number> | Uint32Array |
index_count | number |
vertex_count | number |
meshopt_optimizeVertexCacheStrip(destination, indices, index_count, vertex_count)
Kind: global function
Param | Type |
---|---|
destination | Array.<number> | Uint32Array |
indices | Array.<number> | Uint32Array |
index_count | number |
vertex_count | number |