Cleanup: move subdiv levels to end of mesh info when printing GeometrySet

This commit is contained in:
Jacques Lucke
2025-03-28 12:54:13 +01:00
parent e00cc8c100
commit c42249705b

View File

@@ -220,6 +220,10 @@ std::ostream &operator<<(std::ostream &stream, const GeometrySet &geometry_set)
{
Vector<std::string> parts;
if (const Mesh *mesh = geometry_set.get_mesh()) {
parts.append(std::to_string(mesh->verts_num) + " verts");
parts.append(std::to_string(mesh->edges_num) + " edges");
parts.append(std::to_string(mesh->faces_num) + " faces");
parts.append(std::to_string(mesh->corners_num) + " corners");
if (mesh->runtime->subsurf_runtime_data) {
const int resolution = mesh->runtime->subsurf_runtime_data->resolution;
if (is_power_of_2_i(resolution - 1)) {
@@ -231,10 +235,6 @@ std::ostream &operator<<(std::ostream &stream, const GeometrySet &geometry_set)
parts.append(std::to_string(resolution) + " subdiv resolution");
}
}
parts.append(std::to_string(mesh->verts_num) + " verts");
parts.append(std::to_string(mesh->edges_num) + " edges");
parts.append(std::to_string(mesh->faces_num) + " faces");
parts.append(std::to_string(mesh->corners_num) + " corners");
}
if (const Curves *curves = geometry_set.get_curves()) {
parts.append(std::to_string(curves->geometry.point_num) + " control points");