Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify: Implement internal flag for topology debug information
We have been relying on smuggling the kind/loop info computed during classification via meshopt_simplifyDebug global pointers. This information is valuable to visualize, and there's future improvements to classification that would need to be debugged, so it's not ready to remove but exposing this as globals results in issues as it expands the exported API surface, making it different between release & debug builds. Instead, this change adds a way to request this via an option bit, and return it via indices[] - instead of per-vertex information, we return this per-triangle-corner. It's not exactly identical, as there's some redundancy, but per-corner metadata is nice in general and this is generally sufficient to do the requisite visualization. The newly added option bit is *not* part of the official API surface - the format of the data may change at any point, and the entire feature may get dropped at any point once it stops being useful.
- Loading branch information