Skip to content

Commit 68c8cf8

Browse files
committed
Properly fix inf/inf issue in MCC
Properly fix #3316 Without this fix, we could end up with 4 corners, which might seem valid, while some of those are (0,0).
1 parent eebd897 commit 68c8cf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/mcc/src/bound_min.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ void CBoundMin::calculate()
167167
j = (i + 1) % 4;
168168
Vcart = lines[i].cross(lines[j]);
169169
if (fabs(Vcart.z) <= 1e-6){
170-
continue;
170+
return;
171171
}
172172
Vhom.x = Vcart.x / Vcart.z;
173173
Vhom.y = Vcart.y / Vcart.z;

0 commit comments

Comments
 (0)