Skip to content

Commit 2a37dfb

Browse files
WIP: adaptation to point association criteria
1 parent f75adb4 commit 2a37dfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffCheck/geometry/DFMesh.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ namespace diffCheck::geometry
125125
double res = (area1 + area2 + area3 - referenceTriangleArea) / referenceTriangleArea;
126126

127127
// arbitrary value to avoid false positives (points that, when projected on the triangle, are in it, but that are actually located too far from the mesh to actually belong to it)
128-
double maxProjectionDistance = std::min({(v1 - v0).norm(), (v2 - v1).norm(), (v0 - v2).norm()});
128+
double maxProjectionDistance = std::min({(v1 - v0).norm(), (v2 - v1).norm(), (v0 - v2).norm()}) / 2;
129129

130130
if (std::abs(res) < associationThreshold && (projectedPoint - point).norm() < maxProjectionDistance)
131131
{

0 commit comments

Comments
 (0)