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
Instead of using the seeds when the adjacency selection didn't yield a
result, we use the seeds when the meshlet is going to be split; this
covers some cases when adjacency runs out of triangles, and also covers
split_factor based splits, slightly improving the flow for flex variant
as well.
// for the first triangle, we don't have a meshlet cone yet, so we use the initial seed
821
+
// to continue the meshlet, we select an adjacent triangle based on connectivity and spatial scoring
825
822
if (meshlet_offset == 0 && meshlet.triangle_count == 0)
826
823
best_triangle = initial_seed;
827
-
828
-
// if the best triangle doesn't fit into current meshlet, the spatial scoring we've used is not very meaningful, so we re-select using topological scoring
// when we run out of neighboring triangles we need to switch to spatial search; we currently just pick the closest triangle irrespective of connectivity
829
+
// when we run out of adjacent triangles we need to switch to spatial search; we currently just pick the closest triangle irrespective of connectivity
0 commit comments