Skip to content

Commit 52eb677

Browse files
committed
fixed inf/inf issue in checker_detector
1 parent 83dbb51 commit 52eb677

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/mcc/src/bound_min.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ void CBoundMin::calculate()
166166
{
167167
j = (i + 1) % 4;
168168
Vcart = lines[i].cross(lines[j]);
169+
if (fabs(Vcart.z) <= 1e-6){
170+
continue;
171+
}
169172
Vhom.x = Vcart.x / Vcart.z;
170173
Vhom.y = Vcart.y / Vcart.z;
171174
V[i] = Vhom + mu;

0 commit comments

Comments
 (0)