Skip to content

Commit 0a5ac86

Browse files
authored
Merge pull request #3939 from vrabaud:mcc
Properly fix inf/inf issue in MCC
2 parents eebd897 + 68c8cf8 commit 0a5ac86

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)