0026918: GeomLib_CheckCurveOnSurface cannot compute distance if 3D-curve is periodic
[occt.git] / tests / bugs / modalg_2 / bug22967
index adf544e..2470b57 100755 (executable)
@@ -27,3 +27,24 @@ checkprops result -s 668843
 checkshape result
 checkview -display result -2d -path ${imagedir}/${test_image}.png
 
+
+############################################################################################################
+# Addition checks according to the issue OCC26918
+###########################################################################################################
+
+set i 1
+set Lf [explode result f]
+foreach ff $Lf {
+  set Le [explode $ff e]
+  
+  set j 1
+  foreach ee $Le {
+    if { [string first "Tolerance cannot be computed" [xdistef $ee $ff]] >= 0 } {
+      puts "Error: \"xdistef result_$i_$j result_$i\" cannot find maximal distance "
+    }
+    
+    incr j
+  }
+  
+  incr i
+}