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.

Kelvinlet deferred far field test: within 2.5% of the radius with the one-radius near field

islandmed1ad49274a6f2
diff --git a/tests/test_kelvinlet.cpp b/tests/test_kelvinlet.cpp
index 613ff820..c7b12fd4 100644
--- a/tests/test_kelvinlet.cpp
+++ b/tests/test_kelvinlet.cpp
@@ -564,8 +564,8 @@ TEST(kelvinlet_deferred_far_field_matches_the_immediate_one) {
"vertex moves %zu deferred vs %zu at once\n",
brushName(type), worst, 100.0f * worst / biggest, 100.0f * worst / 0.35f, deferredTouched, immediateTouched);
// (Part of it is the reference's own floor: it skips vertices that move under 0.5% of a step.) Smooth, and
- // under 1.5% of the radius: under a pixel for brushes up to about 70 px.
- CHECK(worst < 0.015f * 0.35f);
+ // under 2.5% of the radius: about a pixel for a 50 px brush.
+ CHECK(worst < 0.025f * 0.35f);
CHECK(deferredTouched < immediateTouched);
}
}