Commit 4da787f
Fuzz-class fix: scale TranslationInvariance area tol with |translate|
With position-inclusive eps (InferEps uses bBox.Scale()), vertex snapping
at large translations changes area in either direction - not just shrinkage.
The prior EXPECT_LE was wrong; switching back to EXPECT_NEAR with a tol that
scales with |translate|: O(N * eps * edge_length) = O(|translate| * 1e-7),
so 1e-6 * (1 + rawArea + |tx| + |ty|) provides a 7.5x+ margin.
NumContour stays one-sided (EXPECT_LE): larger eps can only merge features,
never invent new contours.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent a4045b1 commit 4da787f
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
941 | 941 | | |
942 | 942 | | |
943 | 943 | | |
944 | | - | |
945 | | - | |
946 | | - | |
947 | | - | |
948 | | - | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
949 | 952 | | |
950 | 953 | | |
951 | 954 | | |
| |||
0 commit comments