Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.
C++ 3d3d-sculptingcppdear-imguidigital-sculptingfbxgame-developmentgaussian-splattinggltfimage-to-3dmcpopenglopenusdsculptingtext-to-3dunreal-engine
QRemesh: tidy the piece stats comment and timing output
islandmedbd1c72f61fc9
diff --git a/src/core/QRemesh.cpp b/src/core/QRemesh.cppindex 74be6974..80fc4aef 100644--- a/src/core/QRemesh.cpp+++ b/src/core/QRemesh.cpp@@ -1675,7 +1675,6 @@ bool qremesh(const Mesh& source, const QRemeshOptions& opt, Mesh& out, std::stri}size_t totalTris = 0;for (const WorkMesh& p : parts) totalTris += p.T.size();- std::vector<double> weight(parts.size(), 1.0);if (!report(0.03f)) return false;QuadMesh qm;@@ -1705,8 +1704,8 @@ bool qremesh(const Mesh& source, const QRemeshOptions& opt, Mesh& out, std::stricontinue;}if (timing)- std::fprintf(stderr, " piece %zu: %zu triangles, area %.4g, weight %.2f, budget %.0f -> %zu quads\n", i,- parts[i].T.size(), partArea[i], weight[i], budget[i], r.mesh.quads.size());+ std::fprintf(stderr, " piece %zu: %zu triangles, area %.4g, budget %.0f -> %zu quads\n", i, parts[i].T.size(),+ partArea[i], budget[i], r.mesh.quads.size());qm.P.insert(qm.P.end(), r.mesh.P.begin(), r.mesh.P.end());for (const glm::uvec4& q : r.mesh.quads) qm.quads.push_back(q + glm::uvec4(base));seam.insert(seam.end(), r.seam.begin(), r.seam.end());diff --git a/src/core/QRemesh.h b/src/core/QRemesh.hindex c5e8b0a2..67c8db24 100644--- a/src/core/QRemesh.h+++ b/src/core/QRemesh.h@@ -60,7 +60,7 @@ struct QRemeshStats {bool symmetryUsed = false; // false when symmetry was asked for but the model isn't mirror-symmetricfloat symmetryCenter = 0.0f; // the plane used (with symmetryUsed)float asymmetry = 0.0f; // the model's mirror mismatch about that plane, in mean quad edges- size_t pieces = 0; // separate pieces of the source, each remeshed on its own+ size_t pieces = 0; // separate pieces of the source (small ones are remeshed on their own)double seconds = 0;};