0028131: BRepOffset_MakeOffset can't create offset with a face which created by filli...
[occt.git] / tests / bugs / modalg_7 / bug25730
index 18ad471..82b990d 100755 (executable)
@@ -1,27 +1,25 @@
-puts "TODO OCC25730 ALL: result of MakeThickSolid aborts the BOPCheck in Geom_OffsetSurface::SetD0"
-
-puts "============"
-puts "OCC25730"
-puts "============"
+puts "# ===================================================================="
+puts "# OCC25730: result of MakeThickSolid aborts the BOPCheck in Geom_OffsetSurface::SetD0"
+puts "# ===================================================================="
 puts ""
-#############################################################################################
-## result of MakeThickSolid aborts the BOPCheck in Geom_OffsetSurface::SetD0
-#############################################################################################
 
+puts "# Load shape"
 restore [locate_data_file bug25730_thickness8-draw-fillet001.brep] Fillet001
 
 explode Fillet001 F
 
+puts "# Perform offset"
 offsetparameter 1e-7 p a
 offsetload Fillet001 -1 Fillet001_4
 offsetperform Thickness
 
-if { [regexp "There were errors during the operation, so the list may be incomplete" [bopcheck Fillet001]] == 1 } {
-    puts "Error : result of MakeThickSolid aborts the BOPCheck in Geom_OffsetSurface::SetD0"
+puts "# Check result"
+if { [regexp "errors" [bopcheck Fillet001]] == 1 } {
+    puts "Error : bopcheck fails on initial shape"
 }
 
-if { [regexp "There were errors during the operation, so the list may be incomplete" [bopcheck Thickness]] == 1 } {
-    puts "Error : result of MakeThickSolid aborts the BOPCheck in Geom_OffsetSurface::SetD0"
+if { [regexp "errors" [bopcheck Thickness]] == 1 } {
+    puts "Error : bopcheck fails on offsetted shape"
 }
 
 checkview -display Fillet001 -2d -path ${imagedir}/${test_image}-Fillet001-2d.png