Update meshoptimizer to v0.25

Also expose new flags as SurfaceTool enums for future use
This commit is contained in:
Arseny Kapoulkine
2025-08-22 20:25:02 -07:00
parent 21fbf033f7
commit 90ff46c292
8 changed files with 1162 additions and 143 deletions

View File

@ -89,6 +89,10 @@ public:
SIMPLIFY_ERROR_ABSOLUTE = 1 << 2, // From meshopt_SimplifyErrorAbsolute
/* Remove disconnected parts of the mesh during simplification incrementally, regardless of the topological restrictions inside components. */
SIMPLIFY_PRUNE = 1 << 3, // From meshopt_SimplifyPrune
/* Produce more regular triangle sizes and shapes during simplification, at some cost to geometric quality. */
SIMPLIFY_REGULARIZE = 1 << 4, // From meshopt_SimplifyRegularize
/* Allow collapses across attribute discontinuities, except for vertices that are tagged with 0x02 in vertex_lock. */
SIMPLIFY_PERMISSIVE = 1 << 5, // From meshopt_SimplifyPermissive
};
typedef void (*OptimizeVertexCacheFunc)(unsigned int *destination, const unsigned int *indices, size_t index_count, size_t vertex_count);