You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It was a stupid logic error. The assertion was supposed to check that the algo never returns Some(last_index). I moved the assertion to the Some-returning arm of the if statement.
The find_best_vertex_split function iterates over all vertices:
tmf/src/tmf_exporter.rs
Line 319 in 9c5f61b
However, immediately after the loop, there is an assertion that best_split_index may not be the last vertex:
tmf/src/tmf_exporter.rs
Line 339 in 9c5f61b
While testing file sizes of different formats, I've encountered a model that apparently meets this edge case, resulting in an assertion error.
This is the mesh I am trying to export. It's the dragon sample model from the official glTF samples with computed tangents, run through meshopt: dragon.zip
The text was updated successfully, but these errors were encountered: