@@ -576,6 +576,8 @@ void nanite(const std::vector<Vertex>& vertices, const std::vector<unsigned int>
576
576
while (pending.size () > 1 )
577
577
{
578
578
std::vector<std::vector<int > > groups = partition (clusters, pending, remap);
579
+ double avg_group = double (pending.size ()) / double (groups.size ());
580
+
579
581
pending.clear ();
580
582
581
583
std::vector<int > retry;
@@ -686,9 +688,9 @@ void nanite(const std::vector<Vertex>& vertices, const std::vector<unsigned int>
686
688
double inv_clusters = pending.empty () ? 0 : 1.0 / double (pending.size ());
687
689
688
690
depth++;
689
- printf (" lod %d: %d clusters (%.1f%% full, %.1f tri/cl, %.1f vtx/cl, %.2f connected, %.1f boundary), %d triangles" ,
691
+ printf (" lod %d: %d clusters (%.1f%% full, %.1f tri/cl, %.1f vtx/cl, %.2f connected, %.1f boundary, %.1f partition ), %d triangles" ,
690
692
depth, int (pending.size ()),
691
- double (full_clusters) * inv_clusters * 100 , double (triangles) * inv_clusters, double (xformed_lod) * inv_clusters, double (components_lod) * inv_clusters, double (boundary_lod) * inv_clusters,
693
+ double (full_clusters) * inv_clusters * 100 , double (triangles) * inv_clusters, double (xformed_lod) * inv_clusters, double (components_lod) * inv_clusters, double (boundary_lod) * inv_clusters, avg_group,
692
694
int (triangles));
693
695
if (stuck_clusters)
694
696
printf (" ; stuck %d clusters (%d single, %d triangles)" , stuck_clusters, single_clusters, int (stuck_triangles));
0 commit comments