Skip to main content

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

ParamType
adjacencyTriangleAdjacency
indicesArray.<number> | Uint32Array
index_countnumber
vertex_countnumber

getNextVertexDeadEnd(dead_end, dead_end_top, input_cursor, live_triangles, vertex_count) ⇒ number

Kind: global function
Returns: number - -1 if not found

ParamType
dead_endArray.<number>
dead_end_topnumber
input_cursornumber
live_trianglesArray.<number>
vertex_countnumber

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

ParamType
candidatesArray.<number>
next_candidates_beginnumber
next_candidates_endnumber
live_trianglesArray.<number>
cache_timestampsArray.<number>
timestampnumber
cache_sizenumber

vertexScore(table, cache_position, live_triangles) ⇒ number

Kind: global function

ParamType
tableVertexScoreTable
cache_positionnumber
live_trianglesnumber

getNextTriangleDeadEnd(input_cursor, emitted_flags, face_count) ⇒ number

Kind: global function

ParamType
input_cursornumber
emitted_flagsUint8Array
face_countnumber

meshopt_optimizeVertexCacheTable(destination, indices, index_count, vertex_count, table)

Kind: global function

ParamType
destinationArray.<number> | Uint32Array
indicesArray.<number> | Uint32Array
index_countnumber
vertex_countnumber
tableVertexScoreTable

meshopt_optimizeVertexCache(destination, indices, index_count, vertex_count)

Kind: global function

ParamType
destinationArray.<number> | Uint32Array
indicesArray.<number> | Uint32Array
index_countnumber
vertex_countnumber

meshopt_optimizeVertexCacheStrip(destination, indices, index_count, vertex_count)

Kind: global function

ParamType
destinationArray.<number> | Uint32Array
indicesArray.<number> | Uint32Array
index_countnumber
vertex_countnumber