gp_Pnt2d StartBC1 = BC1->StartPoint();
gp_Pnt2d EndBC1 = BC1->EndPoint();
gp_Vec2d VecBC1(StartBC1, EndBC1);
+ if (VecBC1.SquareMagnitude() < gp::Resolution()) return theCurveIndice;
L1 = new Geom2d_Line(StartBC1, VecBC1);
}
gp_Pnt2d StartBC2 = BC2->StartPoint();
gp_Pnt2d EndBC2 = BC2->EndPoint();
gp_Vec2d VecBC2(StartBC2, EndBC2);
+ if (VecBC2.SquareMagnitude() < gp::Resolution()) return theCurveIndice;
L2 = new Geom2d_Line(StartBC2, VecBC2);
}
--- /dev/null
+puts "========"
+puts "OCC28871"
+puts "========"
+puts ""
+##########################################################################
+# Various problems in SAT export
+##########################################################################
+
+stepread [locate_data_file bug28871_cuffie.stp] a *
+tpcompound result
+
+checkprops result -s 170790
+checkshape result
+
+set nbshapes_expected "
+Number of shapes in shape
+ VERTEX : 1387
+ EDGE : 2222
+ WIRE : 953
+ FACE : 928
+ SHELL : 53
+ SOLID : 39
+ COMPSOLID : 0
+ COMPOUND : 1
+ SHAPE : 5583
+"
+checknbshapes result -ref ${nbshapes_expected} -t -m "importing file"
+checkview -display result -3d -path ${imagedir}/${test_image}.png