Skip to content

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.

QRemesh: four graph vertices per lattice edge is enough with Adaptive Size too (faster, same quality)

islandmedf2a4a6049de1
diff --git a/src/core/QRemesh.cpp b/src/core/QRemesh.cpp
index ea725416..eed8f2d4 100644
--- a/src/core/QRemesh.cpp
+++ b/src/core/QRemesh.cpp
@@ -1177,7 +1177,7 @@ bool qremesh(const Mesh& source, const QRemeshOptions& opt, Mesh& out, std::stri
const double faces = std::max(4.0, double(target) / 4.0 / (axis >= 0 ? 2.0 : 1.0));
float spacing = float(std::sqrt(area / faces));
const bool adaptive = opt.adaptive > 0.01f || !work.color.empty();
- const float wantEdge = spacing / (adaptive ? 6.0f : 4.0f);
+ const float wantEdge = spacing / 4.0f; // about four graph vertices per lattice edge
// Surface the quads snap to (before any subdivision for density: same surface).
mark("prepare");