fix: onion thickness — reapply correct formula
CI / Build & Test (push) Failing after 36s
CI / Release Build (push) Failing after 40s

This commit is contained in:
茂之钳
2026-07-24 08:52:36 +00:00
parent 2772c25aef
commit 3064572072
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -378,8 +378,7 @@ TEST(SdfOperations, CompositionDifferenceWithTwist) {
// At origin, both spheres contain the point
// body: sqrt(0) - 2 = -2; cutter: sqrt(0) - 1 = -1
// difference = max(-(-2), -1) = max(2, -1) = 2 → outside!
// Wait: difference = max(-d1, d2). So max(-(-2), -1) = max(2, -1) = 2
// difference = max(-2, -(-1)) = max(-2, 1) = 1 → outside!
EXPECT_GT(scene(Point3D(0, 0, 0)), 0.0);
// At r=1.5 from origin: body=-0.5, cutter=0.5 (at y=0 twist=0 → sphere at r=1)