]> OCCT Git - occt-copy.git/commitdiff
Adding testing cases from chl group
authorapn <apn@opencascade.com>
Fri, 28 Dec 2012 14:50:48 +0000 (18:50 +0400)
committerapn <apn@opencascade.com>
Fri, 28 Dec 2012 14:50:48 +0000 (18:50 +0400)
Modified END file of all group bugs. Command nbshape moved to END file. Add begin with variable subgroup
Small correction in END file
Replaced test case bug726_3 from moddata to modalg

180 files changed:
tests/bugs/caf/begin
tests/bugs/caf/bug2932_1
tests/bugs/caf/bug2932_2
tests/bugs/demo/begin [new file with mode: 0755]
tests/bugs/end
tests/bugs/fclasses/begin [new file with mode: 0755]
tests/bugs/fclasses/bug23403
tests/bugs/fclasses/bug6794
tests/bugs/heal/begin
tests/bugs/iges/begin
tests/bugs/iges/bug448
tests/bugs/iges/bug5027_1
tests/bugs/iges/end [deleted file]
tests/bugs/mesh/begin
tests/bugs/modalg/begin [new file with mode: 0755]
tests/bugs/modalg/buc60703_1
tests/bugs/modalg/buc60782_2
tests/bugs/modalg/buc60787_1
tests/bugs/modalg/buc60789_1
tests/bugs/modalg/buc60865
tests/bugs/modalg/buc60882
tests/bugs/modalg/buc60898
tests/bugs/modalg/buc60899_2
tests/bugs/modalg/bug1665
tests/bugs/modalg/bug21
tests/bugs/modalg/bug23470
tests/bugs/modalg/bug238_1
tests/bugs/modalg/bug238_2
tests/bugs/modalg/bug239_1
tests/bugs/modalg/bug239_2
tests/bugs/modalg/bug240_1
tests/bugs/modalg/bug240_2
tests/bugs/modalg/bug241_1
tests/bugs/modalg/bug241_2
tests/bugs/modalg/bug242_1
tests/bugs/modalg/bug242_2
tests/bugs/modalg/bug243_1
tests/bugs/modalg/bug243_2
tests/bugs/modalg/bug244
tests/bugs/modalg/bug245_1
tests/bugs/modalg/bug245_2
tests/bugs/modalg/bug246
tests/bugs/modalg/bug248_1
tests/bugs/modalg/bug248_2
tests/bugs/modalg/bug249_1
tests/bugs/modalg/bug249_2
tests/bugs/modalg/bug249_3
tests/bugs/modalg/bug249_4
tests/bugs/modalg/bug250_1
tests/bugs/modalg/bug250_2
tests/bugs/modalg/bug250_3
tests/bugs/modalg/bug250_4
tests/bugs/modalg/bug398
tests/bugs/modalg/bug4717_1
tests/bugs/modalg/bug4717_2
tests/bugs/modalg/bug4717_3
tests/bugs/modalg/bug4717_4
tests/bugs/modalg/bug4717_5
tests/bugs/modalg/bug4717_6
tests/bugs/modalg/bug4717_7
tests/bugs/modalg/bug4717_8
tests/bugs/modalg/bug472_3
tests/bugs/modalg/bug476_1
tests/bugs/modalg/bug476_2
tests/bugs/modalg/bug476_3
tests/bugs/modalg/bug476_4
tests/bugs/modalg/bug476_5
tests/bugs/modalg/bug476_6
tests/bugs/modalg/bug476_7
tests/bugs/modalg/bug476_8
tests/bugs/modalg/bug497_3
tests/bugs/modalg/bug4993_1
tests/bugs/modalg/bug4993_2
tests/bugs/modalg/bug526
tests/bugs/modalg/bug535
tests/bugs/modalg/bug539_1
tests/bugs/modalg/bug539_2
tests/bugs/modalg/bug548
tests/bugs/modalg/bug673
tests/bugs/modalg/bug726_3 [new file with mode: 0755]
tests/bugs/modalg/bug745_12
tests/bugs/modalg/bug829_1
tests/bugs/modalg/bug910
tests/bugs/modalg/end [deleted file]
tests/bugs/moddata/begin [new file with mode: 0755]
tests/bugs/moddata/buc60637
tests/bugs/moddata/buc60652_1
tests/bugs/moddata/buc60652_2
tests/bugs/moddata/buc60652_3
tests/bugs/moddata/buc60652_4
tests/bugs/moddata/buc60755
tests/bugs/moddata/buc60895
tests/bugs/moddata/buc60911
tests/bugs/moddata/buc60955
tests/bugs/moddata/bug126
tests/bugs/moddata/bug134_1
tests/bugs/moddata/bug134_2
tests/bugs/moddata/bug135
tests/bugs/moddata/bug150_1
tests/bugs/moddata/bug150_2
tests/bugs/moddata/bug151_1
tests/bugs/moddata/bug151_2
tests/bugs/moddata/bug152_1
tests/bugs/moddata/bug152_2
tests/bugs/moddata/bug160_1
tests/bugs/moddata/bug160_2
tests/bugs/moddata/bug160_3
tests/bugs/moddata/bug160_4
tests/bugs/moddata/bug160_5
tests/bugs/moddata/bug160_6
tests/bugs/moddata/bug164_1
tests/bugs/moddata/bug164_2
tests/bugs/moddata/bug175
tests/bugs/moddata/bug183_1
tests/bugs/moddata/bug183_2
tests/bugs/moddata/bug183_3
tests/bugs/moddata/bug183_4
tests/bugs/moddata/bug183_5
tests/bugs/moddata/bug183_6
tests/bugs/moddata/bug188
tests/bugs/moddata/bug188_1
tests/bugs/moddata/bug211_1
tests/bugs/moddata/bug211_2
tests/bugs/moddata/bug217
tests/bugs/moddata/bug227_1
tests/bugs/moddata/bug227_2
tests/bugs/moddata/bug228
tests/bugs/moddata/bug254
tests/bugs/moddata/bug259
tests/bugs/moddata/bug266
tests/bugs/moddata/bug268
tests/bugs/moddata/bug26_1
tests/bugs/moddata/bug26_2
tests/bugs/moddata/bug278_1
tests/bugs/moddata/bug278_2
tests/bugs/moddata/bug278_3
tests/bugs/moddata/bug27_1
tests/bugs/moddata/bug27_2
tests/bugs/moddata/bug28_1
tests/bugs/moddata/bug28_2
tests/bugs/moddata/bug31
tests/bugs/moddata/bug332
tests/bugs/moddata/bug354_1
tests/bugs/moddata/bug354_2
tests/bugs/moddata/bug374_1
tests/bugs/moddata/bug374_2
tests/bugs/moddata/bug376
tests/bugs/moddata/bug37_1
tests/bugs/moddata/bug37_2
tests/bugs/moddata/bug380_1
tests/bugs/moddata/bug380_2
tests/bugs/moddata/bug3_1
tests/bugs/moddata/bug3_2
tests/bugs/moddata/bug4
tests/bugs/moddata/bug466
tests/bugs/moddata/bug469
tests/bugs/moddata/bug496
tests/bugs/moddata/bug50
tests/bugs/moddata/bug601
tests/bugs/moddata/bug611_1
tests/bugs/moddata/bug611_2
tests/bugs/moddata/bug611_3
tests/bugs/moddata/bug65
tests/bugs/moddata/bug726_3 [deleted file]
tests/bugs/moddata/bug766
tests/bugs/moddata/end [deleted file]
tests/bugs/moddata/pro19422_1
tests/bugs/moddata/pro19422_2
tests/bugs/step/begin
tests/bugs/step/bug3397
tests/bugs/step/bug5027_2
tests/bugs/step/end [deleted file]
tests/bugs/vis/begin
tests/bugs/vis/bug138_1
tests/bugs/vis/bug138_2
tests/bugs/vis/bug319
tests/bugs/vis/bug672_1
tests/bugs/vis/bug672_4
tests/bugs/xde/begin
tests/bugs/xde/bug4648

index 04f004b1d552b1f594368a097085d4f6a4671d1d..ce171e2f782aee3145de07594099eabd9c38f98a 100755 (executable)
@@ -1,5 +1,7 @@
 pload DCAF
 
+set subgroup caf
+
 
 
 
index a606183405b646329a9c25d749d09c3de6f97419..eeb7c535dce1d643273b86ce551b51c72d7c0ac5 100755 (executable)
@@ -53,12 +53,12 @@ NewCommand D
 set list [DumpCommand D]
 
 # Checking
-set length [llength ${list}]
+set ll [llength ${list}]
 set good_length 17
-puts "length = ${length}"
+puts "length = ${ll}"
 puts "good_length = ${good_length}"
 
-if { ${length} != ${good_length} } {
+if { ${ll} != ${good_length} } {
   puts "OCC2932 Error (case 1)"
 } else {
   set name_attribute [lindex ${list} [expr ${good_length} - 1]]
index 0e07b5283efd5c6a4b4b35103e8aa066cc07cb60..b11432140d78ecb1623d18ce1991ace26c729744 100755 (executable)
@@ -53,12 +53,12 @@ NewCommand D
 set list [DumpCommand D]
 
 # Checking
-set length [llength ${list}]
+set ll [llength ${list}]
 set good_length 17
-puts "length = ${length}"
+puts "length = ${ll}"
 puts "good_length = ${good_length}"
 
-if { ${length} != ${good_length} } {
+if { ${ll} != ${good_length} } {
   puts "OCC2932 Error (case 1)"
 } else {
   set name_attribute [lindex ${list} [expr ${good_length} - 1]]
diff --git a/tests/bugs/demo/begin b/tests/bugs/demo/begin
new file mode 100755 (executable)
index 0000000..c8bfd1d
--- /dev/null
@@ -0,0 +1,9 @@
+set subgroup demo
+
+
+
+
+
+
+
+
index 9178db6b3e61bee7c7de883bf7df4d7cc9e1cdca..af27a99fa66c8399ed434dae44c9a51b059759b1 100755 (executable)
@@ -1,3 +1,132 @@
+if { [info exists square] } {
+    set prop "square"
+    set mass $square
+    if { [info exists tol_square] } {
+       regexp {Mass +: +([-0-9.+eE]+)} [sprops result $tol_square] full m
+    } else {
+       regexp {Mass +: +([-0-9.+eE]+)} [sprops result] full m
+    }
+}
+if { [info exists length] } {
+    set prop "length"
+    set mass $length
+    regexp {Mass +: +([-0-9.+eE]+)} [lprops result] full m      
+
+    puts "checksection"
+    puts [checksection result]
+}
+
+#if mass (length or square) is empty in test case then result should be an empty shape.
+if { [info exists mass] } {
+    if { [string compare $subgroup "moddata"] != 0 } {
+       puts "checkshape"
+       checkshape result
+    }
+      
+    if { [string compare "$mass" "empty"] != 0 } {
+       if { $m == 0 } {
+                   puts "Error : The command is not valid. The $prop is 0."
+       }
+       if { $mass > 0 } {
+                   puts "The expected $prop is $mass"
+       }
+       #check of change of square is < 1%
+       if { ($mass != 0 && [expr 1.*abs($mass - $m)/$mass] > 0.01) || ($mass == 0 && $m != 0) } {
+           puts "Error : The $prop of result shape is $m"
+       }
+    } else {
+       if { $m != 0 } {
+                   puts "Error : The command is not valid. The $prop is $m"
+       }
+    }
+}
+
+set glob_inf [info global nb_*_good]
+if { [regexp "nb_.*_good" $glob_inf] == 1 } {
+    set nb_info [nbshapes result]
+}
+
+if { [info exists nb_v_good] } {
+    regexp {VERTEX +: +([-0-9.+eE]+)} $nb_info full nb_v
+    if { ${nb_v} != ${nb_v_good} } {
+        puts "Error : Result shape is WRONG because it must contains ${nb_v_good} vertexes instead of ${nb_v}"
+    } else {
+        puts "Result shape contains ${nb_v} vertexes"
+    }
+}
+
+if { [info exists nb_e_good] } {
+    regexp {EDGE +: +([-0-9.+eE]+)} $nb_info full nb_e
+    if { ${nb_e} != ${nb_e_good} } {
+        puts "Error : Result shape is WRONG because it must contains ${nb_e_good} edges instead of ${nb_e}"
+    } else {
+        puts "Result shape contains ${nb_e} edges"
+    }
+}
+
+if { [info exists nb_w_good] } {
+    regexp {WIRE +: +([-0-9.+eE]+)} $nb_info full nb_w
+    if { ${nb_w} != ${nb_w_good} } {
+        puts "Error : Result shape is WRONG because it must contains ${nb_w_good} wires instead of ${nb_w}"
+    } else {
+        puts "Result shape contains ${nb_w} wires"
+    }
+}
+
+if { [info exists nb_f_good] } {
+    regexp {FACE +: +([-0-9.+eE]+)} $nb_info full nb_f
+    if { ${nb_f} != ${nb_f_good} } {
+        puts "Error : Result shape is WRONG because it must contains ${nb_f_good} faces instead of ${nb_f}"
+    } else {
+        puts "Result shape contains ${nb_f} faces"
+    }
+}
+
+if { [info exists nb_sh_good] } {
+    regexp {SHELL +: +([-0-9.+eE]+)} $nb_info full nb_sh
+    if { ${nb_sh} != ${nb_sh_good} } {
+        puts "Error : Result shape is WRONG because it must contains ${nb_sh_good} shells instead of ${nb_sh}"
+    } else {
+        puts "Result shape contains ${nb_sh} shells"
+    }
+}
+
+if { [info exists nb_sol_good] } {
+    regexp {SOLID +: +([-0-9.+eE]+)} $nb_info full nb_sol
+    if { ${nb_sol} != ${nb_sol_good} } {
+        puts "Error : Result shape is WRONG because it must contains ${nb_sol_good} solids instead of ${nb_sol}"
+    } else {
+        puts "Result shape contains ${nb_sol} solids"
+    }
+}
+
+if { [info exists nb_compsol_good] } {
+    regexp {COMPSOLID +: +([-0-9.+eE]+)} $nb_info full nb_compsol
+    if { ${nb_compsol} != ${nb_compsol_good} } {
+        puts "Error : Result shape is WRONG because it must contains ${nb_compsol_good} compsolids instead of ${nb_compsol}"
+    } else {
+        puts "Result shape contains ${nb_compsol} compsolids"
+    }
+}
+
+if { [info exists nb_compound_good] } {
+    regexp {COMPOUND +: +([-0-9.+eE]+)} $nb_info full nb_compound
+    if { ${nb_compound} != ${nb_compound_good} } {
+        puts "Error : Result shape is WRONG because it must contains ${nb_compound_good} compounds instead of ${nb_compound}"
+    } else {
+        puts "Result shape contains ${nb_compound} compounds"
+    }
+}
+
+if { [info exists nb_shape_good] } {
+    regexp {SHAPE +: +([-0-9.+eE]+)} $nb_info full nb_shape
+    if { ${nb_shape} != ${nb_shape_good} } {
+        puts "Error : Result shape is WRONG because it must contains ${nb_shape_good} shapes instead of ${nb_shape}"
+    } else {
+        puts "Result shape contains ${nb_shape} shapes"
+    }
+}
+
 if { [isdraw result] } {
     if { [info exists 2dviewer] } {
        clear
@@ -18,13 +147,12 @@ if { [isdraw result] } {
 }
 
 if { [info exist only_screen] } {
-    vdump $imagedir/${test_image}.png
+   vdump $imagedir/${test_image}.png
 }
 
 if { [info exist only_screen2d] } {
-    v2ddump $imagedir/${test_image}.png
+   v2ddump $imagedir/${test_image}.png
 }
 
 # to end a test script
 puts "TEST COMPLETED"
-
diff --git a/tests/bugs/fclasses/begin b/tests/bugs/fclasses/begin
new file mode 100755 (executable)
index 0000000..5fee6fb
--- /dev/null
@@ -0,0 +1,9 @@
+set subgroup fclasses
+
+
+
+
+
+
+
+
index b3b65a6e687b3def55b10d45ad5cfd867ce2018c..ac4dbc2d765b75c05ac71a79defc7a9d197db601 100755 (executable)
@@ -4,9 +4,9 @@
 pload QAcommands
 
 set result [CR23403 \t]
-set length [llength ${result}]
+set ll [llength ${result}]
 
 puts ""
-if { ${length} != 0 } {
+if { ${ll} != 0 } {
   puts "Error : parsing is incorrect"
 }
\ No newline at end of file
index 45379663d08a86da5153ae5ea93a43c1568cd44f..4aaf90f21c92866885628abcf14641be8cd6281e 100755 (executable)
@@ -18,9 +18,10 @@ if { ${OPT} != 0 } {
 } else {
     set result [OCC6794 ${nb}]
     regexp {Use nb += +([-0-9.+eE]+)} $result full use_nb
-    regexp {aLength += +([-0-9.+eE]+)} $result full length
+    regexp {aLength += +([-0-9.+eE]+)} $result full ll
     
-    if { ${use_nb} != ${nb} || ${length} != ${nb} } {
+    if { ${use_nb} != ${nb} || ${ll} != ${nb} } {
         puts "Faulty ${BugNumber}"
     }
 }
+
index a4b98f1bedd85eb37dc98d2bbe4c90b84363c7dd..58d19fe5d3f2b2ebd66f6e1b856fd652c7ccc66c 100755 (executable)
@@ -1,3 +1,6 @@
 pload XSDRAW
 
+set subgroup heal
+
+
 
index 437191e665c2b42d5fd078871c0d8fdde26ab643..a2e881173875c726b002ac51c245ef7b2b8ffde9 100755 (executable)
@@ -1,6 +1,9 @@
 pload XDE
 pload AISV
 
+set subgroup iges
+
+
 
 
 
index fcca32758520adba0617409cc8d91a48fe9889e2..618d30fe48bea54e1242e33047af2f1c206a680a 100755 (executable)
@@ -12,8 +12,8 @@ if [catch { set list [igesbrep [locate_data_file Amino_172448-65210.igs] a * ] }
     puts "Faulty OCC448: here is reading problem"
 } else {
     tpcompound result
-    set length [llength $list]
-    set NbShapes [lindex $list [expr $length - 1]]
+    set ll [llength $list]
+    set NbShapes [lindex $list [expr $ll - 1]]
 
   #
   # ATANTION!!!!!!! FOR TESTING !!!!!!!
@@ -28,3 +28,4 @@ if [catch { set list [igesbrep [locate_data_file Amino_172448-65210.igs] a * ] }
 
 set 2dviewer 0
 
+
index e4f9629f7b722cf7b15e35e6179022e809b9a64a..b42b845e2a433b93900d3035b5b431deed35992c 100755 (executable)
@@ -12,9 +12,7 @@ if [catch { igesread [locate_data_file OCC5027.igs] a * } res] {
     puts "Warning ${BugNumber} : here is reading problem"
 } else {
     tpcompound result
-    set nb_info [nbshapes result]
     
-    set check_square 1
     set square 159588
     set nb_v_good 140
     set nb_e_good 144
diff --git a/tests/bugs/iges/end b/tests/bugs/iges/end
deleted file mode 100755 (executable)
index 48b054a..0000000
+++ /dev/null
@@ -1,120 +0,0 @@
-if { [info exist check_square] } {
-    if { [info exists square] } {
-       set prop "square"
-       set mass $square
-       regexp {Mass +: +([-0-9.+eE]+)} [sprops result] full m      
-    }
-    
-    if { [info exists volume] } {
-       set prop "volume"
-       set mass $volume
-       regexp {Mass +: +([-0-9.+eE]+)} [vprops result] full m      
-    }
-    
-    if { [info exists length] } {
-       set prop "length"
-        set mass $length
-        regexp {Mass +: +([-0-9.+eE]+)} [lprops result] full m
-        puts "checksection"
-        puts [checksection result]
-    }
-
-   #if mass (length or square) is empty in test case then result should be an empty shape.
-   if { [string compare "$mass" "empty"] != 0 } {
-      if { $m == 0 } {
-                puts "Error : The command is not valid. The $prop is 0."
-      }
-      if { $mass > 0 } {
-        puts "The expected $prop is $mass"
-      }
-      #check of change of square is < 1%
-      if { ($mass != 0 && [expr 1.*abs($mass - $m)/$mass] > 0.01) || ($mass == 0 && $m != 0) } {
-        puts "Error : The $prop of result shape is $m"
-      }
-    } else {
-      if { $m != 0 } {
-                puts "Error : The command is not valid. The $prop is $m"
-      }
-    }
-}
-if { [info exists nb_v_good] } {
-    regexp {VERTEX +: +([-0-9.+eE]+)} $nb_info full nb_v
-    if { ${nb_v} != ${nb_v_good} } {
-       puts "Error : Result shape is WRONG because it must contains ${nb_v_good} vertexes instead of ${nb_v}"
-    } else {
-       puts "Result shape contains ${nb_v} vertexes"
-    }
-}
-
-if { [info exists nb_e_good] } {
-    regexp {EDGE +: +([-0-9.+eE]+)} $nb_info full nb_e
-    if { ${nb_e} != ${nb_e_good} } {
-        puts "Error : Result shape is WRONG because it must contains ${nb_e_good} edges instead of ${nb_e}"
-    } else {
-       puts "Result shape contains ${nb_e} edges"
-    }
-}
-
-if { [info exists nb_w_good] } {
-    regexp {WIRE +: +([-0-9.+eE]+)} $nb_info full nb_w
-    if { ${nb_w} != ${nb_w_good} } {
-        puts "Error : Result shape is WRONG because it must contains ${nb_w_good} wires instead of ${nb_w}"
-    } else {
-       puts "Result shape contains ${nb_w} wires"
-    }
-}
-
-if { [info exists nb_f_good] } {
-    regexp {FACE +: +([-0-9.+eE]+)} $nb_info full nb_f
-    if { ${nb_f} != ${nb_f_good} } {
-        puts "Error : Result shape is WRONG because it must contains ${nb_f_good} faces instead of ${nb_f}"
-    } else {
-        puts "Result shape contains ${nb_f} faces"
-    }
-}
-
-if { [info exists nb_sh_good] } {
-    regexp {SHELL +: +([-0-9.+eE]+)} $nb_info full nb_sh
-    if { ${nb_sh} != ${nb_sh_good} } {
-       puts "Error : Result shape is WRONG because it must contains ${nb_sh_good} shells instead of ${nb_sh}"
-    } else {
-       puts "Result shape contains ${nb_sh} shells"
-    }
-}
-
-if { [info exists nb_sol_good] } {
-    regexp {SOLID +: +([-0-9.+eE]+)} $nb_info full nb_sol
-    if { ${nb_sol} != ${nb_sol_good} } {
-       puts "Error : Result shape is WRONG because it must contains ${nb_sol_good} solids instead of ${nb_sol}"
-    } else {
-        puts "Result shape contains ${nb_sol} solids"
-    }
-}
-
-if { [info exists nb_compsol_good] } {
-    regexp {COMPSOLID +: +([-0-9.+eE]+)} $nb_info full nb_compsol
-    if { ${nb_compsol} != ${nb_compsol_good} } {
-        puts "Error : Result shape is WRONG because it must contains ${nb_compsol_good} compsolids instead of ${nb_compsol}"
-    } else {
-        puts "Result shape contains ${nb_compsol} compsolids"
-    }
-}
-
-if { [info exists nb_compound_good] } {
-    regexp {COMPOUND +: +([-0-9.+eE]+)} $nb_info full nb_compound
-    if { ${nb_compound} != ${nb_compound_good} } {
-        puts "Error : Result shape is WRONG because it must contains ${nb_compound_good} compounds instead of ${nb_compound}"
-    } else {
-        puts "Result shape contains ${nb_compound} compounds"
-    }
-}
-
-if { [info exists nb_shape_good] } {
-    regexp {SHAPE +: +([-0-9.+eE]+)} $nb_info full nb_shape
-    if { ${nb_shape} != ${nb_shape_good} } {
-        puts "Error : Result shape is WRONG because it must contains ${nb_shape_good} shapes instead of ${nb_shape}"
-    } else {
-        puts "Result shape contains ${nb_shape} shapes"
-    }
-}
-
index 5d6a7d4ad46023cae3c00acf756f1e517706f823..ba457e1b975cebf1a517b2201c165149b8141f16 100755 (executable)
@@ -27,3 +27,5 @@ if { [array get Draw_Groups "TOPOLOGY Check commands"] == "" } {
 if { [array get Draw_Groups "ZeViewer"] == "" } {
        pload AISV
 }
+
+set subgroup mesh
diff --git a/tests/bugs/modalg/begin b/tests/bugs/modalg/begin
new file mode 100755 (executable)
index 0000000..3490337
--- /dev/null
@@ -0,0 +1,9 @@
+set subgroup modalg
+
+
+
+
+
+
+
+
index d213ff1b84e9e8443117b0b83a270cc30a874841..1226c03d9df4a3e8074f287359f25617e9cd47f4 100755 (executable)
@@ -1,7 +1,6 @@
 puts "TODO OCC12345 ALL: An exception was caught"
 puts "TODO OCC12345 ALL: Exception"
 puts "TODO OCC12345 ALL: Faulty  BUC60703: here is problem with FUSE operation"
-puts "TODO OCC12345 ALL: Error : The command can not be build."
 
 puts "========================"
 puts "BUC60703"
@@ -32,7 +31,7 @@ if [catch {bfuse result a b } catch_result] {
        puts "BUC60703  OK"
     }
     #  maxtolerance res
+    set square 0
+    set 2dviewer 0
 }
 
-set square 0
-set 2dviewer 0
index d5526a846f0095663a9c1fe9c5047ec223fcfd6c..7d042a14b89e335416191ad261b9f7caa61385ff 100755 (executable)
@@ -1,7 +1,6 @@
 puts "TODO OCC12345 ALL: Faulty shapes in variables faulty_1 to faulty_2"
 puts "TODO OCC12345 ALL: Faulty : mistakes are found in SOURCE  shape by checkshape command"
 puts "TODO OCC12345 ALL: Faulty BUC60782"
-puts "TODO OCC12345 ALL: Error : The command can not be build."
         
 puts "========================"
 puts "BUC60782"
@@ -32,6 +31,6 @@ if { [regexp {OK} $che ] != 1} {
        puts "OK BUC60782: offset is created"
        tpcompound result
     }
+    set square 0
+    set 2dviewer 0
 }
-set square 0
-set 2dviewer 0
index 527904acba679c7895bab7b4abaaa83110669e52..2119030376bde5206eef3038a3565bbca9e1abbd 100755 (executable)
@@ -17,8 +17,6 @@ checkshape S1
 bcommon result S1 S2
 
 set nb_info [nbshapes result]
-
-
 regexp {COMPOUND +: +([-0-9.+eE]+)} $nb_info full err
 regexp {SHELL +: +([-0-9.+eE]+)} $nb_info full err1
 
index 6cd08871ed406a6794b96461a3f2a6f76eceb1a2..b35e264144e1d63e2ecbc73c419e28bc846db2e8 100755 (executable)
@@ -13,7 +13,6 @@ checkshape S2
 
 bcommon result S1 S2
 
-
 set nb_info [nbshapes result]
 regexp {VERTEX +: +([-0-9.+eE]+)} $nb_info full ve
 regexp {EDGE +: +([-0-9.+eE]+)} $nb_info full ed
index acdf0d8b436a215182808ba4ea461d8f94d69c2f..0b3f61ac12f614064d77d0170224b215e2152d28 100755 (executable)
@@ -15,7 +15,6 @@ plane pl 1.1 0.99999 1 0 1 0
 mkface f pl
 bsection result sh f
 
-
 set nb_info [nbshapes result]
 regexp {EDGE +: +([-0-9.+eE]+)} $nb_info full ed
 
index 8d8183759a5f525ae6a235ea4c662331823c6e4e..0d57ec2e403006f7bfd3de336c4d1a909a6542d4 100755 (executable)
@@ -7,7 +7,6 @@ puts ""
 #######################################################################
 
 pload XDE
-catch { source $env(CSF_DrawPluginQADefaults)/QARebuildCommands }
 
 restore [locate_data_file BUC60882_samepar.brep] result
 
index 460a3a1e3878a643bc4130a564529f7a38949204..1a252cc45bb82af171ca5836b074ad92263dde34 100755 (executable)
@@ -1,5 +1,4 @@
 puts "TODO OCC12345 ALL: Faulty BUC60898: here is reading problem"
-puts "TODO OCC12345 ALL: Error : The command can not be build."
 
 puts "==========="
 puts "  BUC60898"
@@ -7,7 +6,6 @@ puts "==========="
 puts ""
 
 pload XDE
-catch { source $env(CSF_DrawPluginQADefaults)/QARebuildCommands }
 
 if [catch { igesbrep [locate_data_file $filedir/buc60898.igs] a *} result] { 
 ## rename to BUC60898.igs
@@ -21,16 +19,8 @@ if [catch { igesbrep [locate_data_file $filedir/buc60898.igs] a *} result] {
     } else {
        puts " BUC60898 OK: function SEWING works without except"
     }
+    set square 0
+    set 2dviewer 0
 }
 
-#checkshape res
-#set che [checkshape res r]
-#set err [lindex $che [expr [llength $che] - 1]]
-#if { $err != "OK"} {
-#  puts "Faulty : mistakes are found in checked shape by checkshape command"
-#} else {
-#  puts "Checking by checkshape - OK"
-#}
 
-set square 0
-set 2dviewer 0
index 4d79361333613b223ef54da30086df656beb58f0..09757b8361d4a1919ae8dc0b9a1dff0f489018a1 100755 (executable)
@@ -45,7 +45,6 @@ bsection result crg cyl
 set nb_info [nbshapes result]
 regexp {EDGE +: +([-0-9.+eE]+)} $nb_info full edgeness
 
-
     #set fullness [ nbshapes res ]
     #puts "$fullness"
     #set qq [ lindex $fullness 0 ]
index f599daf38d22a8740900f8296af0f3077d3a5329..811021e1441740f82f6783c89d560c5d8e9d6b78 100755 (executable)
@@ -13,7 +13,6 @@ if {[catch {setvperiodic a} message]} {
     if {[catch {mkface result a} message]} {
        puts "OCC1665 FAULTY : mkface"
     } else {
-        set nb_info [nbshapes result]
        set nb_e_good 3
     }
 }
index bbf172138214ec0848fcee55e22593eba0be2be9..f8ba733c7b8222ad56b3be4f070ce3b50c1e2716 100755 (executable)
@@ -7,7 +7,6 @@ puts ""
 #==============================#
 
 pload XDE
-catch { source $env(CSF_DrawPluginQADefaults)/QARebuildCommands }
 
 restore [locate_data_file OCC21.brep] sh 
 checkshape sh
index 2f3682b0c9975804eb8b6fcabbf628135dea27ab..1b5405bf91dfa71f8c58c2ca56aff4099cb89e1d 100755 (executable)
@@ -10,13 +10,11 @@ restore [locate_data_file bug23470_qe.brep] qe
 explode qe
 bop qe_1 qe_2
 bopfuse result
-set nb_info [nbshapes result]
 
 set nb_v_good 2
 set nb_e_good 1
 set nb_w_good 1
 set nb_shape_good 5
-
 set length 48.4459
 set command bopfuse
 
index fd49fe852b16dd1c1116b64780483039a9876927..cdfd9d737c873fd1968829543f0290a4f1f48e62 100755 (executable)
@@ -13,10 +13,6 @@ puts [restore [locate_data_file case_2_edge1.brep] b]
 puts [bop a b]
 puts [bopcommon result b a]
 
-set nb_info [nbshapes result]
-set nb_v_good 14
-set nb_e_good 7
-
 explode result v
 explode a e
 distmini di result_1 a_3 
@@ -27,5 +23,7 @@ if { [expr $dis > 1.e-5] } {
     puts " Result shape is COMPLITE"
 }
 
+set nb_v_good 14
+set nb_e_good 7
 set length 0
 set 2dviewer 0
index bb1f0622f8079569b3488094c3f0e5ee1358c4bf..e92fd4bb6f166fbc5ac4907440856cc0b80ccdc6 100755 (executable)
@@ -13,10 +13,6 @@ puts [restore [locate_data_file case_2_edge1.brep] b]
 puts [bop a b]
 puts [boptuc result b a]
 
-set nb_info [nbshapes result]
-set nb_v_good 14
-set nb_e_good 7
-
 explode result v
 explode a e
 distmini di result_2 a_3 
@@ -27,5 +23,7 @@ if { [expr $dis > 1.e-5] } {
     puts " Result shape is COMPLITE"
 }
 
+set nb_v_good 14
+set nb_e_good 7
 set length 0
 set 2dviewer 0
index 855f90f4d31e28336133a1b971d6aed42f36be21..cca3f2e9376fbc041eb4d81deb7d8c3736d68fcf 100755 (executable)
@@ -11,13 +11,11 @@ puts "========================"
  puts " " 
 restore [locate_data_file OCC238a.brep] a
 restore [locate_data_file case_2_wire1.brep] b
- puts [bop a b]
- puts [bopcommon result]
+puts [bop a b]
+puts [bopcommon result]
  
- set nb_info [nbshapes result]
- set nb_v_good 18
- set nb_e_good 10
- set length 0
- set 2dviewer 0
+set nb_v_good 18
+set nb_e_good 10
+set length 0
+set 2dviewer 0
  
\ No newline at end of file
index 8d71b621502a5875f54a5eaa0d6375938fa95dab..ddacd399c9c45a1fc0ada1177869c326b5cb399f 100755 (executable)
@@ -9,12 +9,11 @@ puts "========================"
  puts " " 
 restore [locate_data_file OCC238a.brep] a
 restore [locate_data_file case_2_wire1.brep] b
- puts [bop a b]
- puts [boptuc result]
- set nb_info [nbshapes result]
- set nb_v_good 18
- set nb_e_good 11
+puts [bop a b]
+puts [boptuc result]
 
+set nb_v_good 18
+set nb_e_good 11
 set length 2481.26
 set 2dviewer 0
  
\ No newline at end of file
index 2f46893eb287157d0691531e616a8fa1701cda78..9761aa14e74c6e10d4e4ca113dafcb393f9068c3 100755 (executable)
@@ -11,12 +11,11 @@ puts "========================"
  puts " " 
 restore [locate_data_file OCC240a.brep] a
 restore [locate_data_file case_2_edge2.brep] b
- puts [bop a b]
- puts [bopcommon result]
- set nb_info [nbshapes result]
- set nb_v_good 14
- set nb_e_good 6
+puts [bop a b]
+puts [bopcommon result]
 
- set length 0
- set 2dviewer 0
+set nb_v_good 14
+set nb_e_good 6
+set length 0
+set 2dviewer 0
  
\ No newline at end of file
index d6575a3d9301330155d3c0459a8edea69fc66455..189f358a1efe16a261c45997d25b4db0d619095c 100755 (executable)
@@ -11,12 +11,11 @@ puts "========================"
  puts " " 
 restore [locate_data_file OCC240a.brep] a
 restore [locate_data_file case_2_edge2.brep] b
- puts [bop a b]
- puts [boptuc result]
- set nb_info [nbshapes result]
- set nb_v_good 14
- set nb_e_good 7
+puts [bop a b]
+puts [boptuc result]
 
- set length 0
- set 2dviewer 0
+set nb_v_good 14
+set nb_e_good 7
+set length 0
+set 2dviewer 0
  
\ No newline at end of file
index 5b01f27af80412adf9d67751023ade014dfb83a8..c29342aa5b7e79e711345480d656c8577fdef61a 100755 (executable)
@@ -11,12 +11,11 @@ puts "========================"
  puts " " 
 restore [locate_data_file OCC240a.brep] a
 restore [locate_data_file case_2_edge3.brep] b
- puts [bop a b]
- puts [bopcommon result]
- set nb_info [nbshapes result]
- set nb_v_good 6
- set nb_e_good 3
+puts [bop a b]
+puts [bopcommon result]
 
- set length 0
- set 2dviewer 0
+set nb_v_good 6
+set nb_e_good 3
+set length 0
+set 2dviewer 0
  
\ No newline at end of file
index c6c1f019a3d8df198c6104bee9266ee6f4035b48..0aecc6e2e9ffd63d62c25d14b43f2430eb8e2f92 100755 (executable)
@@ -11,12 +11,11 @@ puts "========================"
  puts " " 
 restore [locate_data_file OCC240a.brep] a
 restore [locate_data_file case_2_edge3.brep] b
- puts [bop a b]
- puts [boptuc result]
- set nb_info [nbshapes result]
- set nb_v_good 6
- set nb_e_good 3
- set length 0
- set 2dviewer 0
+puts [bop a b]
+puts [boptuc result]
+
+set nb_v_good 6
+set nb_e_good 3
+set length 0
+set 2dviewer 0
  
\ No newline at end of file
index b54049b791f26ecb589aa47d385739ad16db7424..1e6dab42f1871fc847188ae8bd7297443a96f65b 100755 (executable)
@@ -11,12 +11,11 @@ puts "========================"
  puts " " 
 restore [locate_data_file OCC240a.brep] a
 restore [locate_data_file case_2_wire1.brep] b
- puts [bop a b]
- puts [bopcommon result]
- set nb_info [nbshapes result]
- set nb_v_good 18
- set nb_e_good 9
- set length 0
- set 2dviewer 0
+puts [bop a b]
+puts [bopcommon result]
+
+set nb_v_good 18
+set nb_e_good 9
+set length 0
+set 2dviewer 0
  
\ No newline at end of file
index b6a9e6bf291187a28f1c6a61f46d3840684aadff..1304e72e5f536558efde972c3a5613c4517a6810 100755 (executable)
@@ -11,12 +11,11 @@ puts "========================"
  puts " " 
 restore [locate_data_file OCC240a.brep] a
 restore [locate_data_file case_2_wire1.brep] b
- puts [bop a b]
- puts [boptuc result]
- set nb_info [nbshapes result]
- set nb_v_good 18
- set nb_e_good 13
- set length 0
- set 2dviewer 0
+puts [bop a b]
+puts [boptuc result]
+
+set nb_v_good 18
+set nb_e_good 13
+set length 0
+set 2dviewer 0
  
\ No newline at end of file
index 19a30ca6607dfc599624fe2277e00b25dc831baf..6cca505a5a9e49cce6246565a0dfd337b62f55e4 100755 (executable)
@@ -9,12 +9,11 @@ puts "========================"
  puts " " 
 restore [locate_data_file case_4_shell.brep] a
 restore [locate_data_file case_4_wire3.brep] b
- puts [bop a b]
- puts [bopcommon result]
- set nb_info [nbshapes result]
- set nb_v_good 15
- set nb_e_good 10
- set length 1150.78
- set 2dviewer 0
+puts [bop a b]
+puts [bopcommon result]
+
+set nb_v_good 15
+set nb_e_good 10
+set length 1150.78
+set 2dviewer 0
  
\ No newline at end of file
index ed3f1fb67e9710bb39fc8753dec317162ce539ec..d7613a902a931d633e56ad6598fd1c53da987b7c 100755 (executable)
@@ -9,12 +9,11 @@ puts "========================"
  puts " " 
 restore [locate_data_file case_4_shell.brep] a
 restore [locate_data_file case_4_wire3.brep] b
- puts [bop a b]
- puts [boptuc result]
- set nb_info [nbshapes result]
- set nb_v_good 16
- set nb_e_good 11
+puts [bop a b]
+puts [boptuc result]
 
- set length 929.278
- set 2dviewer 1
+set nb_v_good 16
+set nb_e_good 11
+set length 929.278
+set 2dviewer 1
  
\ No newline at end of file
index d7c0cea8474f8d4c7315ec7b7ec9c4d9003a535c..8b24b1e4a827d77ed21a24d02386b599f623f9c1 100755 (executable)
@@ -11,10 +11,9 @@ restore [locate_data_file case_5_solid.brep] a
 restore [locate_data_file case_4_wire3.brep] b
  puts [bop a b]
  puts [bopcommon result]
- set nb_info [nbshapes result]
+
  set nb_v_good 12
  set nb_e_good 11
-
  set length 1808.02
  set 2dviewer 0
  
\ No newline at end of file
index 0c8f0169c7ebb509fb16d843451a149322ff4308..ad7f5980921b193f5378394e624649a0bc95ca22 100755 (executable)
@@ -9,12 +9,11 @@ puts "========================"
  puts " " 
 restore [locate_data_file case_5_shell.brep] a
 restore [locate_data_file case_4_wire3.brep] b
- puts [bop a b]
- puts [bopcommon result]
- set nb_info [nbshapes result]
- set nb_v_good 12
- set nb_e_good 11
+puts [bop a b]
+puts [bopcommon result]
 
- set length 1808.02
- set 2dviewer 0
+set nb_v_good 12
+set nb_e_good 11
+set length 1808.02
+set 2dviewer 0
  
\ No newline at end of file
index 10f19fe9c21716a54ed730b7b4caa85f9bf056b0..ceda3cdb650c9a813c8f02887a9e01d267435da8 100755 (executable)
@@ -9,12 +9,11 @@ puts "========================"
  puts " " 
 restore [locate_data_file case_5_shell.brep] a
 restore [locate_data_file case_4_wire3.brep] b
- puts [bop a b]
- puts [boptuc result]
- set nb_info [nbshapes result]
- set nb_v_good 3
- set nb_e_good 2
- set length 272.04
- set 2dviewer 0
+puts [bop a b]
+puts [boptuc result]
+
+set nb_v_good 3
+set nb_e_good 2
+set length 272.04
+set 2dviewer 0
  
\ No newline at end of file
index c0791bb9f344f629c582c6ecf881bbf30d6a661a..dd1ea1d268ef3e104661be326d44f63041fcf440 100755 (executable)
@@ -11,12 +11,10 @@ puts "========================"
  puts " " 
 restore [locate_data_file OCC246a.brep] a
 restore [locate_data_file case_1_wire1.brep] b
- puts [bop a b]
- puts [bopcommon result]
- set nb_info [nbshapes result]
- set nb_v_good 5
- set nb_e_good 2
- set length 0
- set 2dviewer 0
\ No newline at end of file
+puts [bop a b]
+puts [bopcommon result]
+
+set nb_v_good 5
+set nb_e_good 2
+set length 0
+set 2dviewer 0
index 2d90b98bf46d98d39051975b6c91d73edf64daa4..19bd2cfb018335312fb44568f7eb8d9f54e33910 100755 (executable)
@@ -11,12 +11,11 @@ puts "========================"
  puts " " 
 restore [locate_data_file OCC247a.brep] a
 restore [locate_data_file OCC248b.brep] b
- puts [bop a b]
- puts [bopcommon result]
- set nb_info [nbshapes result]
- set nb_v_good 1
- set nb_e_good 0
- set length 0
- set 2dviewer 0
+puts [bop a b]
+puts [bopcommon result]
+
+set nb_v_good 1
+set nb_e_good 0
+set length 0
+set 2dviewer 0
  
\ No newline at end of file
index 43e3a166ecfafce82f4c27db71015afc2f7bcae3..86644ae15d51af253ece2a767a3038057788bb79 100755 (executable)
@@ -11,12 +11,11 @@ puts "========================"
  puts " " 
 restore [locate_data_file OCC247a.brep] a
 restore [locate_data_file OCC248b.brep] b
- puts [bop a b]
- puts [boptuc result]
- set nb_info [nbshapes result]
- set nb_v_good 8
- set nb_e_good 8
- set length 0
- set 2dviewer 0
+puts [bop a b]
+puts [boptuc result]
+
+set nb_v_good 8
+set nb_e_good 8
+set length 0
+set 2dviewer 0
  
\ No newline at end of file
index beefe7fe1d6971e39d268d63c7f0c6b6c82364a3..718f83c9a7832f1f1be57bf737c1ea47f1aade96 100755 (executable)
@@ -11,12 +11,11 @@ puts "========================"
  puts " " 
 restore [locate_data_file case_9_wire_a.brep] a
 restore [locate_data_file case_9_edge3.brep] b
- puts [bop a b]
- puts [bopcommon result]
- set nb_info [nbshapes result]
- set nb_v_good 2
- set nb_e_good 1
- set length 0
- set 2dviewer 0
+puts [bop a b]
+puts [bopcommon result]
+
+set nb_v_good 2
+set nb_e_good 1
+set length 0
+set 2dviewer 0
  
\ No newline at end of file
index 79a5ce889d1ee4abfd0ea540eedd88a47010a607..3831479d5bdda4de2450827611c0d30215616ed0 100755 (executable)
@@ -11,13 +11,12 @@ puts "========================"
  puts " " 
 restore [locate_data_file case_9_wire_a.brep] a
 restore [locate_data_file case_9_edge3.brep] b
- puts [bop a b]
- puts [boptuc result]
- set nb_info [nbshapes result]
- set nb_v_good 4
- set nb_e_good 2
+puts [bop a b]
+puts [boptuc result]
 
- set length 0
- set 2dviewer 0
+set nb_v_good 4
+set nb_e_good 2
+set length 0
+set 2dviewer 0
  
  
\ No newline at end of file
index 6ea2f7de7ec609026a267d42dc431cf23c495cac..eb6acc1aa0d6740b8a4d9fc02758011ddcdc1a3d 100755 (executable)
@@ -11,12 +11,11 @@ puts "========================"
  puts " " 
 restore [locate_data_file case_9_wire_a.brep] a
 restore [locate_data_file case_9_edge3.brep] b
- puts [bop a b]
- puts [bopcut result]
- set nb_info [nbshapes result]
- set nb_v_good 4
- set nb_e_good 2
- set length 0
- set 2dviewer 0
+puts [bop a b]
+puts [bopcut result]
+
+set nb_v_good 4
+set nb_e_good 2
+set length 0
+set 2dviewer 0
  
\ No newline at end of file
index f7fc2ea5aa7eebec498adaf084095f6cd296eab7..75e0d9cc29e976ab293093fb53f2c4bebc5a5d12 100755 (executable)
@@ -11,12 +11,11 @@ puts "========================"
  puts " " 
 restore [locate_data_file case_9_wire_a.brep] a
 restore [locate_data_file case_9_edge3.brep] b
- puts [bop a b]
- puts [bopfuse result]
- set nb_info [nbshapes result]
- set nb_v_good 6
- set nb_e_good 5
- set length 0
- set 2dviewer 2
+puts [bop a b]
+puts [bopfuse result]
+
+set nb_v_good 6
+set nb_e_good 5
+set length 0
+set 2dviewer 2
  
\ No newline at end of file
index a3dc6d47863e0bc16d6141dc1c0e54054881341b..f45bec692ee1761abdf3cec1d81ba4a360d5199c 100755 (executable)
@@ -11,12 +11,11 @@ puts "========================"
  puts " " 
 restore [locate_data_file case_9_wire_a.brep] a
 restore [locate_data_file case_9_wire2.brep] b
- puts [bop a b]
- puts [bopcommon result]
- set nb_info [nbshapes result]
- set nb_v_good 2
- set nb_e_good 1
+puts [bop a b]
+puts [bopcommon result]
 
- set length 0
- set 2dviewer 0
+set nb_v_good 2
+set nb_e_good 1
+set length 0
+set 2dviewer 0
  
\ No newline at end of file
index 68fd5d3d7c666fee6f1c13836cf22000a50300eb..4e98480501254f660890684df32fadd6866c66fe 100755 (executable)
@@ -11,12 +11,11 @@ puts "========================"
  puts " " 
 restore [locate_data_file case_9_wire_a.brep] a
 restore [locate_data_file case_9_wire2.brep] b
- puts [bop a b]
- puts [boptuc result]
- set nb_info [nbshapes result]
- set nb_v_good 7
- set nb_e_good 6
+puts [bop a b]
+puts [boptuc result]
 
- set length 0
- set 2dviewer 0
+set nb_v_good 7
+set nb_e_good 6
+set length 0
+set 2dviewer 0
  
\ No newline at end of file
index 686178468dcb3f3b9d0c87d0b2b543e618446199..5d94ebaa8126c2587254da979b06a42c01f51bf5 100755 (executable)
@@ -11,12 +11,11 @@ puts "========================"
  puts " " 
 restore [locate_data_file case_9_wire_a.brep] a
 restore [locate_data_file case_9_wire2.brep] b
- puts [bop a b]
- puts [bopcut result]
- set nb_info [nbshapes result]
- set nb_v_good 4
- set nb_e_good 2
+puts [bop a b]
+puts [bopcut result]
 
- set length 0
- set 2dviewer 0
+set nb_v_good 4
+set nb_e_good 2
+set length 0
+set 2dviewer 0
  
\ No newline at end of file
index 8feeec140b27044818a6da28ab92cca4397ad17e..18a06125f48f68260ba5bceace5967e46fa34274 100755 (executable)
@@ -11,11 +11,10 @@ puts "========================"
  puts " " 
 restore [locate_data_file case_9_wire_a.brep] a
 restore [locate_data_file case_9_wire2.brep] b
- puts [bop a b]
- puts [bopfuse result]
-set nb_info [nbshapes result]
+puts [bop a b]
+puts [bopfuse result]
+
 set nb_v_good 9
 set nb_e_good 9
-
 set length 0
 set 2dviewer 0
index 0378b709f715de8fb54bbc66176eb932bfd711c6..829c95cb9e13812173c960f1e9d00f88a48e8fab 100755 (executable)
@@ -8,7 +8,6 @@ puts ""
 #############################################################
 
 pload XDE
-catch { source $env(CSF_DrawPluginQADefaults)/QARebuildCommands }
 
 restore [locate_data_file OCC398.brep] a 
 #statsh a
@@ -20,18 +19,6 @@ scaleshape result a 10
 
 #statsh res
 
-
-set nb_info [nbshapes result]
 set nb_sol_good 1
-
-#if { $sol == 1 } {
-#    puts  " OCC398 : scaleshape operation was made properly"
-#} else {
-#    puts "Faulty OCC398: scaleshape operation was made wrongly"
-#}
-
-#Statshape should give 3 solids
-#Nbshape should return 1 solid (3 solids is returned if bug not fixed)
-
 set square 180000.
 set 2dviewer 0
index 104835140c094f10f5ea9dce85edf30874604ce8..77f6b34cc7f830bbe9723a8da4fc1946057e6fe4 100755 (executable)
@@ -29,7 +29,6 @@ bop s b
 bopfuse result
 
 set square 680565
-set nb_info [nbshapes result]
 
 set nb_v_good 11
 set nb_e_good 16
index e3235365d3431b9e0f7b70f72586965991179e84..edf0106c585b010e5a47057f8cac7fc83a9c2130 100755 (executable)
@@ -29,7 +29,6 @@ bop b s
 bopfuse result
 
 set square 680565
-set nb_info [nbshapes result]
 
 set nb_v_good 11
 set nb_e_good 16
index c1fa1266dce50a8c257c5cf054bc3d88a042acef..185f5885b47d6750b64bec4ea3c3ab7e6d7a24e6 100755 (executable)
@@ -29,7 +29,6 @@ bop s b
 bopcut result
 
 set square 181937
-set nb_info [nbshapes result]
 
 set nb_v_good 3
 set nb_e_good 4
index b1fe5c250b73460ae3c0fd99d47ad6662edada36..c68768ed240ccde48dbcb6d993d493741d1f14e7 100755 (executable)
@@ -29,7 +29,6 @@ bop b s
 bopcut result
 
 set square 680565
-set nb_info [nbshapes result]
 
 set nb_v_good 11
 set nb_e_good 16
index cac87466f1180068672f7af012fcdf99073c87af..8eae8fa6fc16e0244d9f2162a6c41efc4ae22dbb 100755 (executable)
@@ -29,7 +29,6 @@ bop s b
 boptuc result
 
 set square 680565
-set nb_info [nbshapes result]
 
 set nb_v_good 11
 set nb_e_good 16
index 01bafd5096ae40bddf6c14a1a2b097a68cba470d..dab4307691d1a86ae710974b7d8ba778d4eba501 100755 (executable)
@@ -29,7 +29,6 @@ bop b s
 boptuc result
 
 set square 181937
-set nb_info [nbshapes result]
 
 set nb_v_good 3
 set nb_e_good 4
index 99d4b6abc99f3331abf9cd736c11ff44fcd5e7cd..804091e634b39e00c2455653da223d711084875b 100755 (executable)
@@ -29,7 +29,6 @@ bop s b
 bopcommon result
 
 set square 181937
-set nb_info [nbshapes result]
 
 set nb_v_good 3
 set nb_e_good 4
index 3f28f5798da130c55be640da7907c4c9a3e2308b..40fe4fa6c6c7116444ea5d6ea806191a29fde275 100755 (executable)
@@ -29,7 +29,6 @@ bop b s
 bopcommon result
 
 set square 181937
-set nb_info [nbshapes result]
 
 set nb_v_good 3
 set nb_e_good 4
index 305485f0d0c8d50af03d68040102167dc2b6f42e..903b34f5d5cce085913e603e944ab900cd712f60 100755 (executable)
@@ -19,10 +19,8 @@ checkshape b2
 
 bfuse result b1 b2
 
-set nb_info [nbshapes result]
 set nb_v_good 5
 set nb_e_edge 7
-
 set square 0
 set 2dviewer 0
 
index 07bf00d2da5bc60407c3effd3c107d6d5636c791..e05d8c9dc04b81c5b2352d109ee6c27fb249e609 100755 (executable)
@@ -15,10 +15,7 @@ checkshape s2
 bop s1 s2
 bopfuse result
 
-set nb_info [nbshapes result]
-
 set square 9333.96
-
 set nb_v_good 16
 set nb_e_good 26
 set nb_w_good 11
index e6f51b10478f14ead2b434d2fe504cefdf203d8b..892685e6808d3a300a761f53fe900374b2a6b972 100755 (executable)
@@ -15,10 +15,7 @@ checkshape s2
 bop s2 s1
 bopfuse result
 
-set nb_info [nbshapes result]
-
 set square 9333.96
-
 set nb_v_good 16
 set nb_e_good 26
 set nb_w_good 11
index c0440ee2f00afeca9e83524f58002021420d443e..ef5d6ff58b0bad6ffe3aaab45b0d826f3e998da1 100755 (executable)
@@ -15,10 +15,7 @@ checkshape s2
 bop s1 s2
 bopcut result
 
-set nb_info [nbshapes result]
-
 set square 99.5159
-
 set nb_v_good 12
 set nb_e_good 19
 set nb_w_good 9
index b540f0814f61bf1194126de51b41dac98d01a553..55739ac89c275134f7769b4ede6a123b22c874f8 100755 (executable)
@@ -15,10 +15,7 @@ checkshape s2
 bop s2 s1
 bopcut result
 
-set nb_info [nbshapes result]
-
 set square 9340.03
-
 set nb_v_good 19
 set nb_e_good 33
 set nb_w_good 14
index 2df33eb92089d55562394a922ac1d506477fe1b1..b7a375c85a93f41a4a276edfec354e4011738078 100755 (executable)
@@ -15,10 +15,7 @@ checkshape s2
 bop s1 s2
 boptuc result
 
-set nb_info [nbshapes result]
-
 set square 9340.03
-
 set nb_v_good 19
 set nb_e_good 33
 set nb_w_good 14
index 02d7aa4479f8c3dc25180f84e66b5b378e8e0d74..a43243998f5a3cd6cd4e7195b7d5e58a0d9b9526 100755 (executable)
@@ -15,10 +15,7 @@ checkshape s2
 bop s2 s1
 boptuc result
 
-set nb_info [nbshapes result]
-
 set square 99.5159
-
 set nb_v_good 12
 set nb_e_good 19
 set nb_w_good 9
index eee8c347b84b431be0066ef7345de6592c62ad1c..e8c9a7efb9f557e4985528526f39873bf0051adc 100755 (executable)
@@ -15,10 +15,7 @@ checkshape s2
 bop s1 s2
 bopcommon result
 
-set nb_info [nbshapes result]
-
 set square 105.587
-
 set nb_v_good 15
 set nb_e_good 26
 set nb_w_good 12
index 8c3559fd6b21d6f435ba43d76ae0e7f22ed9bacf..f519b5abb6e3ea4aada956884633fb6645612835 100755 (executable)
@@ -15,10 +15,7 @@ checkshape s2
 bop s2 s1
 bopcommon result
 
-set nb_info [nbshapes result]
-
 set square 105.587
-
 set nb_v_good 15
 set nb_e_good 26
 set nb_w_good 12
index b4970836469d2b1ccd133fd87a7e390401846ac1..b42ce3a8ce4f681a2ad1e4d3a622d2374c1ff1f2 100755 (executable)
@@ -1,4 +1,5 @@
-puts "TODO OCC12345 ALL: Error : The command can not be build."
+puts "TODO OCC12345 ALL: result is not a topological shape!!!"
+puts "TODO OCC12345 ALL: TEST INCOMPLETE"
 
 puts "========="
 puts " OCC497 "
@@ -17,11 +18,5 @@ checkshape a_2
 
 bcut result a_1 a_2
 
-#if { [catch { bcut result a_1 a_2 } catch_result] } {
-#    puts "Faulty OCC497:function CUT works wrongly "
-#} else {
-#    puts "OCC497 : function CUT works without hangs up "
-#}
-
 set square 0
 set 2dviewer 0
index 92b8f0ffc796747f3eb50578f7a2bcf501112ba1..5641abff35f8a7f69dcc65ccadf2c89331423133 100755 (executable)
@@ -17,7 +17,6 @@ bop s1 s2
 bopfuse result
 
 set square 4854.51
-set nb_info [nbshapes result]
 
 set nb_v_good 40
 set nb_e_good 64
index 6b46745d5f7a238115e95962a592170edba6d620..7c5ff166b57f87a21c42505f247cf92c790840b4 100755 (executable)
@@ -17,7 +17,6 @@ bop s2 s1
 bopfuse result
 
 set square 4854.51
-set nb_info [nbshapes result]
 
 set nb_v_good 40
 set nb_e_good 64
index 1476e5febe6f6ca6c1c5bab83f3e4781bd9e4568..44ea80917acac07af15745f9c9f3db627baedc95 100755 (executable)
@@ -8,7 +8,6 @@ puts ""
 ################################################
 
 pload XDE
-catch { source $env(CSF_DrawPluginQADefaults)/QARebuildCommands }
 
 restore [locate_data_file OCC592.brep] a 
 
index b110cd778ee2612b802cd9cd6f830307756ae889..54bc654f964195ce795c0233b5a9c875ffb9006e 100755 (executable)
@@ -9,7 +9,6 @@ puts ""
 #############################################################
 
 pload XDE
-catch { source $env(CSF_DrawPluginQADefaults)/QARebuildCommands }
 
 restore [locate_data_file OCC535.brep] a 
 
index 17d2f2434048573c51131ecbf9fa60f1046b2773..5c3493849c4c281352a155b2dcb4ad5cddcc89ba 100755 (executable)
@@ -9,13 +9,13 @@ puts ""
  puts "  BOPCOMMON   case_4_shell.brep and case_4_wire3.brep"
  puts "==========================================="
  puts " " 
- puts [restore [locate_data_file case_4_shell.brep] a] 
- puts [restore [locate_data_file case_4_wire3.brep] b] 
- puts [bop a b]
- puts [bopcommon result]
-set nb_info [nbshapes result]
+
+restore [locate_data_file case_4_shell.brep] a
+restore [locate_data_file case_4_wire3.brep] b
+bop a b
+bopcommon result
+
 set nb_v_good 15
 set nb_e_good 10
-
 set length 1150.78
 set 2dviewer 0
index abdaf6a222f21ae95229a1d9b303a34b3aaf87b2..dc31058c43c97a9030b28dc74da1ba7486a3ba68 100755 (executable)
@@ -9,15 +9,14 @@ puts ""
  puts "  BOPTUC      case_4_shell.brep and case_4_wire3.brep"
  puts "============================================"
  puts " " 
- puts [restore [locate_data_file case_4_shell.brep] a] 
- puts [restore [locate_data_file case_4_wire3.brep] b] 
- puts [bop a b]
- puts [boptuc result]
 
-set nb_info [nbshapes result]
+restore [locate_data_file case_4_shell.brep] a
+restore [locate_data_file case_4_wire3.brep] b
+bop a b
+boptuc result
+
 set nb_v_good 16
 set nb_e_good 11
-
 set length 929.278
 set 2dviewer 0
 
index 963ee8ff059be618db00c504f22bfe592dc68940..b301f73ed9c755defef4661ce34eb21b1bd96334 100755 (executable)
@@ -9,7 +9,6 @@ puts ""
 ##################################################################
 
 pload XDE
-catch { source $env(CSF_DrawPluginQADefaults)/QARebuildCommands }
 
 restore [locate_data_file CTO908_topo103-t.brep] a 
 
index d5fd0580c6e1592efea2ed134d525019f195746f..8aa9494d1ef6aa15689887206d64cc315f0687f8 100755 (executable)
@@ -1,4 +1,3 @@
-puts "TODO OCC12345 ALL: Error : The command can not be build"
 puts "TODO OCC12345 ALL: Faulty OCC673: function SPLITSHAPE works wrongly"
 
 puts "================"
@@ -19,7 +18,9 @@ if [catch {spliteshape result a a b} catch_result] {
     puts "Faulty OCC673: function SPLITSHAPE works wrongly"
 } else {
     puts "OCC673 OK : function SPLITSHAPE works OK"
+    set square 0
+    set 2dviewer 0
 }
 
-set square 0
-set 2dviewer 0
+
+
diff --git a/tests/bugs/modalg/bug726_3 b/tests/bugs/modalg/bug726_3
new file mode 100755 (executable)
index 0000000..58dbf30
--- /dev/null
@@ -0,0 +1,21 @@
+puts "TODO OCC12345 ALL: Tcl Exception: result is not a topological shape!!!"
+puts "TODO OCC12345 ALL: TEST INCOMPLETE"
+
+puts "========"
+puts "OCC726"
+puts "SAM1594"
+puts "========"
+puts ""
+######################################
+## Boolean operations are impossible on the attachment.
+######################################
+
+restore [locate_data_file OCC726.brep] a 
+explode a
+checkshape a_1
+checkshape a_2
+
+bcut result a_2 a_1
+
+set square 10
+set 2dviewer 0
index c8d52b2d7590754ecf502309de1971abc9a3880c..99e6796b5ba01e17c2b077d2924206dd67e8cba3 100755 (executable)
@@ -1,7 +1,6 @@
 puts "TODO OCC12345 ALL: An exception was caught"
 puts "TODO OCC12345 ALL: Exception "
 puts "TODO OCC12345 ALL: Faulty OCC745"
-puts "TODO OCC12345 ALL: Error : The command can not be build."
 
 puts "========"
 puts "OCC745"
@@ -40,8 +39,6 @@ if { [catch { mkoffset result w 1 10 } status] } {
             }
         }
     }
+    set length 0
+    set 2dviewer 0
 }
-
-set length 0
-set 2dviewer 0
-
index 606ae7f1772fb4baecf1589f96dfb072a9f0a651..8c4cd8c9bbc2b92a91b2e2665f159ad2bfd6863c 100755 (executable)
@@ -1,6 +1,5 @@
 puts "TODO OCC12345 ALL: An exception was caught"
 puts "TODO OCC12345 ALL: Exception"
-puts "TODO OCC12345 ALL: Error : The command can not be build."
 
 puts "========"
 puts "OCC829"
@@ -42,8 +41,6 @@ if { [catch { mkoffset result a_1 1 5 } status] } {
             }
         }
     }
+    set length 0
+    set 2dviewer 0
 }
-
-set length 0
-set 2dviewer 0  
-
index 09965c8acdc4c41d3a295e2dc844cc5dbd3f1f34..e2798a7697dd59de4da174a2184c453bb2502261 100755 (executable)
@@ -8,7 +8,6 @@ puts ""
 #####################################################
 
 pload XDE
-catch { source $env(CSF_DrawPluginQADefaults)/QARebuildCommands }
 
 restore [locate_data_file OCC910.rle] a 
 
diff --git a/tests/bugs/modalg/end b/tests/bugs/modalg/end
deleted file mode 100755 (executable)
index 1e3fbf0..0000000
+++ /dev/null
@@ -1,123 +0,0 @@
-if { [isdraw result] } {
-   #check if result is valid
-   
-   puts "checkshape"
-   set ch [checkshape result]
-   puts $ch
-   
-   if { [info exists square] } {
-      set prop "square"
-      set mass $square
-      regexp {Mass +: +([-0-9.+eE]+)} [sprops result] full m      
-   }
-   if { [info exists length] } {
-      set prop "length"
-      set mass $length
-      regexp {Mass +: +([-0-9.+eE]+)} [lprops result] full m      
-
-      puts "checksection"
-      puts [checksection result]
-   }
-
-   #if mass (length or square) is empty in test case then result should be an empty shape.
-   if { [string compare "$mass" "empty"] != 0 } {
-      if { $m == 0 } {
-                puts "Error : The command is not valid. The $prop is 0."
-      }
-      if { $mass > 0 } {
-        puts "The expected $prop is $mass"
-      }
-      #check of change of square is < 1%
-      if { ($mass != 0 && [expr 1.*abs($mass - $m)/$mass] > 0.01) || ($mass == 0 && $m != 0) } {
-        puts "Error : The $prop of result shape is $m"
-      }
-    
-    if { [info exists nb_v_good] } {
-       regexp {VERTEX +: +([-0-9.+eE]+)} $nb_info full nb_v
-       if { ${nb_v} != ${nb_v_good} } {
-           puts "Error : Result shape is WRONG because it must contains ${nb_v_good} vertexes instead of ${nb_v}"
-       } else {
-           puts "Result shape contains ${nb_v} vertexes"
-       }
-    }
-
-    if { [info exists nb_e_good] } {
-       regexp {EDGE +: +([-0-9.+eE]+)} $nb_info full nb_e
-       if { ${nb_e} != ${nb_e_good} } {
-           puts "Error : Result shape is WRONG because it must contains ${nb_e_good} edges instead of ${nb_e}"
-        } else {
-           puts "Result shape contains ${nb_e} edges"
-       }
-    }
-
-    if { [info exists nb_w_good] } {
-       regexp {WIRE +: +([-0-9.+eE]+)} $nb_info full nb_w
-       if { ${nb_w} != ${nb_w_good} } {
-           puts "Error : Result shape is WRONG because it must contains ${nb_w_good} wires instead of ${nb_w}"
-        } else {
-           puts "Result shape contains ${nb_w} wires"
-       }
-    }
-
-    if { [info exists nb_f_good] } {
-       regexp {FACE +: +([-0-9.+eE]+)} $nb_info full nb_f
-       if { ${nb_f} != ${nb_f_good} } {
-           puts "Error : Result shape is WRONG because it must contains ${nb_f_good} faces instead of ${nb_f}"
-        } else {
-           puts "Result shape contains ${nb_f} faces"
-       }
-    }
-
-    if { [info exists nb_sh_good] } {
-       regexp {SHELL +: +([-0-9.+eE]+)} $nb_info full nb_sh
-       if { ${nb_sh} != ${nb_sh_good} } {
-           puts "Error : Result shape is WRONG because it must contains ${nb_sh_good} shells instead of ${nb_sh}"
-        } else {
-           puts "Result shape contains ${nb_sh} shells"
-       }
-    }
-
-    if { [info exists nb_sol_good] } {
-       regexp {SOLID +: +([-0-9.+eE]+)} $nb_info full nb_sol
-       if { ${nb_sol} != ${nb_sol_good} } {
-           puts "Error : Result shape is WRONG because it must contains ${nb_sol_good} solids instead of ${nb_sol}"
-        } else {
-           puts "Result shape contains ${nb_sol} solids"
-       }
-    }
-
-    if { [info exists nb_compsol_good] } {
-       regexp {COMPSOLID +: +([-0-9.+eE]+)} $nb_info full nb_compsol
-       if { ${nb_compsol} != ${nb_compsol_good} } {
-           puts "Error : Result shape is WRONG because it must contains ${nb_compsol_good} compsolids instead of ${nb_compsol}"
-        } else {
-           puts "Result shape contains ${nb_compsol} compsolids"
-       }
-    }
-
-    if { [info exists nb_compound_good] } {
-       regexp {COMPOUND +: +([-0-9.+eE]+)} $nb_info full nb_compound
-       if { ${nb_compound} != ${nb_compound_good} } {
-           puts "Error : Result shape is WRONG because it must contains ${nb_compound_good} compounds instead of ${nb_compound}"
-        } else {
-           puts "Result shape contains ${nb_compound} compounds"
-       }
-    }
-
-    if { [info exists nb_shape_good] } {
-       regexp {SHAPE +: +([-0-9.+eE]+)} $nb_info full nb_shape
-       if { ${nb_shape} != ${nb_shape_good} } {
-           puts "Error : Result shape is WRONG because it must contains ${nb_shape_good} shapes instead of ${nb_shape}"
-        } else {
-           puts "Result shape contains ${nb_shape} shapes"
-       }
-    }
-
-   } else {
-      if { $m != 0 } {
-                puts "Error : The command is not valid. The $prop is $m"
-      }
-   }
-} else {
-   puts "Error : The command can not be build."
-}
diff --git a/tests/bugs/moddata/begin b/tests/bugs/moddata/begin
new file mode 100755 (executable)
index 0000000..572d363
--- /dev/null
@@ -0,0 +1,9 @@
+set subgroup moddata
+
+
+
+
+
+
+
+
index 0beaab699cd55c25e8fdfef7da06b3ca85c703ad..e7ac755bf14977e8f6eec8dd2da8c3e4e37085fe 100755 (executable)
@@ -6,6 +6,5 @@ puts "========================"
 restore [locate_data_file buc60637a.brep] result
 fsameparameter result
 
-set check_square 1
 set square 144.866
 set 2dviewer 0
index 08b6e6800622f3c0b9e77aac5b16ebec59dc000b..20d10721b9a5a7df7ddd824c75e9ef486c81b4ba 100755 (executable)
@@ -10,6 +10,5 @@ restore [locate_data_file buc60652a.brep] result
 checkshape result
 BUC60652 result
 
-set check_square 1
 set square 19614.8
 set 2dviewer 0
index 677c238637355e86eb661eab61f423695d2095b0..fb8e4e54dee542f750bd3c4b1431710ba7084422 100755 (executable)
@@ -10,7 +10,6 @@ restore [locate_data_file buc60652b.brep] result
 checkshape result
 BUC60652 result
 
-set check_square 1
 set square 29961
 set 2dviewer 0
 
index 150675f9e0c89dc15e195c4b46e9622d99c3656c..bde1f9333ca7bee91252d0e91144c3399608a6e9 100755 (executable)
@@ -10,6 +10,5 @@ restore [locate_data_file buc60652c.brep] result
 checkshape result
 BUC60652 result
 
-set check_square 1
 set square 77815.1
 set 2dviewer 0
index e03cc7a61daeedc36543a1e74687cec89f053eaa..04d72aa5c7c9a6961ef3e1e1e0be8d761351d24f 100755 (executable)
@@ -10,6 +10,5 @@ restore [locate_data_file shading_104.brep] result
 checkshape result
 BUC60652 result
 
-set check_square 1
 set square 119134
 set 2dviewer 0
index 283cebb9c63f79a14c3a19e133de89fdc8e0e612..46c988e6f3478b9a01461d5b4e617d76e11b89f4 100755 (executable)
@@ -14,7 +14,6 @@ checkshape a
 tcopy a result
 checkshape result
 
-set check_square 1
 set square 623.832
 set 2dviewer 0
 
index 9eb62fcdccf0a34138f1fc02ccaecc7fd6c4fce9..6d9355207b0608921eff1781ba6c2b09c460053e 100755 (executable)
@@ -12,7 +12,6 @@ restore [locate_data_file BUC60895.brep] result
 fsameparameter result
 checkshape result
 
-set check_square 1
 set length 12.6012
 set 2dviewer 0
 
index 38a262fcc0a2aa14eebdd90e150c34adcf9bef9c..08e27800bc7ed5532cc767284fc68f9f111817fe 100755 (executable)
@@ -10,6 +10,5 @@ puts "============"
 restore [locate_data_file BUC60911.brep] result
 invert result
 
-set check_square 1
 set square 16353.8
 set 2dviewer 0
index 7910b14473f870c7c5240d30cf55eb9589305685..6fa8f790c1fc7cd3c85bd646d2e089d9612ad67b 100755 (executable)
@@ -9,7 +9,6 @@ checkshape result
 
 build3d result
 
-set check_square 1
 set square 8464.65
 set 2dviewer 0
 
index 5a66edc59d2707cd24951b4ef849d6d270679df4..e40a6dbc59d262fef2f2758ee8547e7eff41a10b 100755 (executable)
@@ -12,6 +12,5 @@ checkshape sh2
 
 compound sh1 sh2 result
 
-set check_square 1
 set square 560.774
 set 2dviewer 0
index b9761c8b837d845df3aae5575eca7107c09417b5..e7c19899b4f60fe8c3178be32c7515eb8b54cb41 100755 (executable)
@@ -14,6 +14,5 @@ checkshape sh
 prism result sh 100 100 100
 checkshape result
 
-set check_square 1
 set square 104057
 set 2dviewer 0
index 815f9445e3050d8cec07f804ebb7bbf67e589c56..5a1622f31b9a2e70e8aa07eaae94fff618e260b9 100755 (executable)
@@ -14,7 +14,6 @@ checkshape sh
 prism result sh 100 100 100
 checkshape result
 
-set check_square 1
 set square 271859
 set 2dviewer 0
 
index 671a68a57ce2f361df59340f0bc74ac377094973..85247a971cf1217d179dc58a560cf590286d97b9 100755 (executable)
@@ -10,7 +10,6 @@ checkshape sh
 sewing result 1 sh
 checkshape result
 
-set check_square 1
 set square 273837
 set 2dviewer 0
 
index 53423ad4223ee3cad7d5e66d9014eb7eadf9477a..9174f95521882a71b0e003d4753745b2304ab1e1 100755 (executable)
@@ -31,6 +31,5 @@ checkshape sh_2
 bfuse result sh_1 sh_2
 checkshape result
 
-set check_square 1
 set square 700
 set 2dviewer 0
index b55d14a101687964653acb0996bcd50791b7de7a..eac73fe079dcce6e8e1461cdbb9b7ea045140ade 100755 (executable)
@@ -30,6 +30,5 @@ checkshape sh_2
 bfuse result sh_2 sh_1
 checkshape result
 
-set check_square 1
 set square 700
 set 2dviewer 0
index ba5ba13cefd94e24c77a84d68247433e0365cd8c..c13709c34f0ca2621dc1c8e3593c440b567edcfb 100755 (executable)
@@ -14,7 +14,6 @@ checkshape sh2
 bfuse result sh1 sh2
 checkshape result
 
-set check_square 1
 set square 11400
 set 2dviewer 0
 
index f57f1edd1892395c9fc5195b6b82099f179084a2..12f3b5c2af76a6cfce26515c2d5f1c1821fab984 100755 (executable)
@@ -14,7 +14,6 @@ checkshape sh2
 bfuse result sh2 sh1
 checkshape result
 
-set check_square 1
 set square 11400
 set 2dviewer 0
 
index d068783adaca20860de4c1797fb93c622dbaf77c..365abd7b91cd39db0acef3c5b1c0783ebf288ad0 100755 (executable)
@@ -22,7 +22,6 @@ checkshape sh_2
 bcut result sh_1 sh_2
 checkshape result
 
-set check_square 1
 set square 276424
 set 2dviewer 0
 
index e2af220b33eaf7adbf345d6760378671ba108d61..3bfef20c89717e32dfa539cc9070b0347177bcef 100755 (executable)
@@ -21,7 +21,6 @@ checkshape sh_2
 bcut result sh_2 sh_1
 checkshape result
 
-set check_square 1
 set square 34894.3
 set 2dviewer 0
 
index 9295085f1ce7dc44990d31d13a90cbeae84ce266..6a0c7b69090232616c7c70f949190e6543c83ce4 100755 (executable)
@@ -18,7 +18,6 @@ if {$nf < 6} {
    puts "Error : the resulting shape is unclosed!!!"
 }
 
-set check_square 1
 set square 94067.7
 set 2dviewer 0
 
index a8a8f2992e42cf8f80f9f14a28a9fe220c4f85c9..4aa1d8da3b7982296fee40e6ba44d1ccfc945c32 100755 (executable)
@@ -18,7 +18,6 @@ if {$nf < 6} {
    puts "Error : the resulting shape is unclosed!!!"
 }
 
-set check_square 1
 set square 94067.7
 set 2dviewer 0
 
index 71383317860dc819f9a817391abbbe88b7c30eac..08ee7f42c511d52d672aa90c9156ef60b0595b40 100755 (executable)
@@ -19,7 +19,6 @@ if {$nf < 6} {
    puts "Error : the resulting shape is unclosed!!!"
 }
 
-set check_square 1
 set square 328116
 set 2dviewer 0
 
index 8f0f12eba2a45678573c33e987e34a7da333c638..1b9364dcf2999121a7e074c81c5e7e1a6b30921e 100755 (executable)
@@ -18,7 +18,6 @@ if {$nf < 6} {
    puts "Error : the resulting shape is unclosed!!!"
 }
 
-set check_square 1
 set square 328116
 set 2dviewer 0
 
index 6712ac474894ab95a772a18b5c78d0f9e252baf6..fd618a95c53442aea94642ec5b1b5ac6159c0d7c 100755 (executable)
@@ -18,7 +18,6 @@ if {$nf < 6} {
    puts "Error : the resulting shape is unclosed!!!"
 }
 
-set check_square 1
 set square 48129.6
 set 2dviewer 0
 
index 1ee510f7e36484d201bd73d9e41f70c439d5a5a7..ff37689e6872e5a9862a8e93384eb74bf65e3de1 100755 (executable)
@@ -19,7 +19,6 @@ if {$nf < 6} {
    puts "Error : the resulting shape is unclosed!!!"
 }
 
-set check_square 1
 set square 247636
 set 2dviewer 0
 
index 92f8e084c985fff1fc538b1829635f91bc3a007f..40162c24319fcfadfd2903f3db5e654fbd2db759 100755 (executable)
@@ -13,7 +13,6 @@ checkshape sh2
 bfuse result sh1 sh2
 checkshape result
 
-set check_square 1
 set square 344595
 set 2dviewer 0
 
index 621fbef9dc79b4c404b80c28b0edfaf5a76318fe..f9fa341174a8d0466276dffaf7c4742460f92ce8 100755 (executable)
@@ -13,7 +13,6 @@ checkshape sh2
 bfuse result sh2 sh1
 checkshape result
 
-set check_square 1
 set square 344595
 set 2dviewer 0
 
index a7100b67a4fd4a8155465a00ca0ae4ebcc93ced4..5297a495ea9dfe1d4d21d884322cf67fad645e27 100755 (executable)
@@ -19,6 +19,5 @@ if { $col1 != $col2} {
    puts  "Error : Command mirror does NOT work properly. "
 }
 
-set check_square 1
 set square 13091.3
 set 2dviewer 0
index 0e4dccbee9a371256523fbf73789573ee1563019..1adf74fd34c96a67288d6142502f4ff7be6db603 100755 (executable)
@@ -14,7 +14,6 @@ checkshape b2
 bcommon result b1 b2
 checkshape result
 
-set check_square 1
 set square 315.159
 set 2dviewer 0
 
index a4396aa7a825256dacc5845251a1aef1f8cde6ee..babea153969e431a04b152283b5244574ddd4db5 100755 (executable)
@@ -14,6 +14,5 @@ checkshape b2
 bfuse result b1 b2
 checkshape result
 
-set check_square 1
 set square 942.478
 set 2dviewer 0
index e8b782dc88ad8e0f91f409d261941f51e337b831..e2e4342e1dcd2492f940ca1e1d58a79245760e73 100755 (executable)
@@ -14,7 +14,6 @@ checkshape b2
 bcut result b1 b2
 checkshape result
 
-set check_square 1
 set square 863.938
 set 2dviewer 0
 
index 62bf145ee0a6398afe9286fd7a96c806963cbcba..985cf6bec2bd99eb055147b6f4392c337928693f 100755 (executable)
@@ -14,7 +14,6 @@ checkshape b2
 bcommon result b1 b2
 checkshape result
 
-set check_square 1
 set square 392.699
 set 2dviewer 0
 
index 9e29053932f01087b4bd3516f68f0b4ce55cfcb5..b170dada136da7052cf585f1f6753406d82e9e14 100755 (executable)
@@ -14,7 +14,6 @@ checkshape b2
 bcommon result b1 b2
 checkshape result
 
-set check_square 1
 set square 198.863
 set 2dviewer 0
 
index 12709f754381de3cbc74f5fc66f70e2ab1c31fe3..674c216e21a4d864d036b6d4bd43d9431c547f06 100755 (executable)
@@ -15,7 +15,6 @@ bop a b
 bopfuse result a b
 checkshape -top result
 
-set check_square 1
 set square 0.0892544
 set 2dviewer 0
 
index 72f29ef6bc52879ce8232aa70addd57b0e141596..6b840d4f0adf2220fddf256bb54de040576db09b 100755 (executable)
@@ -13,7 +13,6 @@ checkshape a_2
 bcommon result a_1 a_2
 checkshape result
 
-set check_square 1
 set square 3739.26
 set 2dviewer 0
 
index 65a1400263b92d939499e9035e3f99e7270c6f0e..a7ff6d682470b326ac0ba5b7700c9491432383d9 100755 (executable)
@@ -12,7 +12,6 @@ checkshape a_2
 bcut result a_1 a_2
 checkshape result
 
-set check_square 1
 set square 669659
 set 2dviewer 0
 
index 769bb1a30d17b85327d814a3243897d3500e790e..4223a4cd491398d58a328448bf4c337fab99286a 100755 (executable)
@@ -14,7 +14,6 @@ explode a e
 blend result a 10 a_24
 checkshape result
 
-set check_square 1
 set square 1.34399e+06
 set 2dviewer 0
 
index c791e25aae25eabc9d2a7f2a187abef9329c5151..5857e5b5be3e97f069200ca702f9c3956d86cc20 100755 (executable)
@@ -14,6 +14,5 @@ explode a e
 blend result a 10 a_4
 checkshape result
 
-set check_square 1
 set square 1.34399e+06
 set 2dviewer 0
index 05c39abb9c582de23e992ca4a695718ecebd5b7e..301eceda1c1802cac1741aa22b822c1483ab1e54 100755 (executable)
@@ -13,6 +13,5 @@ psphere s 6
 bfuse result s b 
 checkshape result
 
-set check_square 1
 set square 618.85
 set 2dviewer 0
index 64cede8e716089738a693edf90423a5f15c6d700..fa5ae7e57a32fd54d18b1113860fdd62e20ec824 100755 (executable)
@@ -21,6 +21,5 @@ checkshape b
 bfuse result a b 
 checkshape result
 
-set check_square 1
 set square 1583.92
 set 2dviewer 0
index bf387cc30ff4a6292d98af1d6525d27ee344790e..0f7bfb19b039ac6b1477f78333554e8241752c53 100755 (executable)
@@ -21,6 +21,5 @@ checkshape b
 bfuse result b a 
 checkshape result
 
-set check_square 1
 set square 1583.92
 set 2dviewer 0
index 9bd1ce1e87f2bebcc44286e24d9f210525702511..ea1a863db9d463cfe20d5b3973c11a03e1484a56 100755 (executable)
@@ -16,6 +16,5 @@ checkshape a_2
 
 bcommon result a_1 a_2
 
-set check_square 1
 set square 66231.3
 set 2dviewer 0
index cd399167f2ff9917d69c559db16ff3d7342a8771..aab2e06d87ea1dad96cd53e4613f02473a15f2e4 100755 (executable)
@@ -13,6 +13,5 @@ checkshape shape3
 common result shape1 shape3
 checkshape result
 
-set check_square 1
 set length 1231.07
 set 2dviewer 0
index a5d00c6009a278ef12228ae00b34e48d17abb9fa..dc0026ffa38562bc798c2f0a1415c44d638d683d 100755 (executable)
@@ -16,6 +16,5 @@ trotate b2 0 0 0 0 0 1 135
 bfuse result b2 b1
 checkshape -top result
 
-set check_square 1
 set square 18.8496
 set 2dviewer 0
index 652cc5873d4d6e8a7f21c8c6a150e876e14e44d8..a45b818019d1a0176c57af0c21909569dd68ebed 100755 (executable)
@@ -16,7 +16,6 @@ explode face f
 chamf result face edge_10 face_3 A 1 45 edge_6 face_3 A 1 45 edge_11 face_3 A 1 45 edge_12 face_3 A 1 45 edge_13 face_3 A 1 45 edge_14 face_3 A 1 45 edge_8 face_3 A 1 45 edge_9 face_3 A 1 45
 checkshape result
 
-set check_square 1
 set square 48913
 set 2dviewer 0
 
index 3958a9b4d1cb0329f45574dd6ab479be85def987..971a2d7faebc49b44a3688378de904c3625536cf 100755 (executable)
@@ -10,7 +10,6 @@ puts ""
 restore [locate_data_file OCC268.brep] result 
 checkshape result
 
-set check_square 1
 set length 56.6039
 set 2dviewer 0
 
index 6da88a2198553e0e86e215c6b3a8f4047901d0cd..cccaa0bc7ea015720bda1870b3763aa0d6ffc2f7 100755 (executable)
@@ -11,9 +11,7 @@ checkshape a_2
 
 bfuse result a_1 a_2
 
-set check_square 1
 set square 44819.9
-
 set 2dviewer 0
 
 
index 8366ac0c29c3350135073fb72e86d7d8dedee1f6..2585427aa078718db43f7ab5fab49e27b89820f9 100755 (executable)
@@ -11,7 +11,5 @@ checkshape a_2
 
 bfuse result a_2 a_1
 
-set check_square 1
 set square 44819.8
-
 set 2dviewer 0
index 2fc28225a45548bc0b1c177c7976039ccefaa991..c3845451533f8c7c10496e9c82cb8e2dddcc9cfa 100755 (executable)
@@ -16,6 +16,5 @@ restore [locate_data_file OCC278a.brep] a
 mkplane result a
 checkshape result
 
-set check_square 1
 set square 2914.99
 set 2dviewer 0
index 089dabd28c9cef43366865c3fe63447e8aa6c62f..51a833d31e7f93184f1b81286558dae2300feda4 100755 (executable)
@@ -16,6 +16,5 @@ restore [locate_data_file OCC278b.brep] a
 mkplane result a
 checkshape result
 
-set check_square 1
 set square 22740
 set 2dviewer 0
index e6cd16f799c9054129282ca131d2e270f9c4edba..47e7df88e21df5a4396d2cd3785412d72a61bc64 100755 (executable)
@@ -22,6 +22,5 @@ if { [regexp "Faulty" $che] != 1 } {
    puts "Error (case 3) : Checkshape command works wrongly"
 }
 
-set check_square 1
 set square 43.3075
 set 2dviewer 0
index 0d2e01ef3723d7328dfc81b62fd33d14ea47ee30..2c079ccfbdad243367e55e10b0a8ea30dfdbdd57 100755 (executable)
@@ -11,8 +11,6 @@ explode a e
 blend result a 1 a_5 1 a_6 1 a_7 1 a_8
 checkshape result
 
-set check_square 1
 set square 155.846
-
 set 2dviewer 0
 
index 9bb04b90fa6a4b0e7cdfa595d274cf0ae2797960..8a81f2a226f1fb1b0e939907bc82ec5fc3d8d73e 100755 (executable)
@@ -12,8 +12,6 @@ explode a f
 chamf result a a_5 a_1 A 1 45 a_6 a_1 A 1 45 a_7 a_1 A 1 45 a_8 a_1 A 1 45
 checkshape result
 
-set check_square 1
 set square 154.145
-
 set 2dviewer 0
 
index 86bcf086272d518439c68e1c7f9c1a898a971ed1..5ca29736351576e8efe10ab3da5d2c124724ec2c 100755 (executable)
@@ -15,7 +15,6 @@ checkshape a_2
 bfuse result a_1 a_2
 checkshape result
 
-set check_square 1
 set square 483935
 set 2dviewer 0
 
index 487ce241d14c928732cfccb5ff290e5ce85e3813..0d8eec1bb89daa9a5b6a1e7bbbe8104a76438319 100755 (executable)
@@ -15,7 +15,6 @@ checkshape a_2
 bfuse result a_2 a_1
 checkshape result
 
-set check_square 1
 set square 483935
 set 2dviewer 0
 
index 14a9782c2d750ee6efbc1e497f49e549767403c2..a0b940df16db44c8be3a219697032bef87b44eb2 100755 (executable)
@@ -29,6 +29,5 @@ explode res2_4 e
 chamf result res2 res2_4_1 res2_4 7 7
 checkshape result
 
-set check_square 1
 set square 107634
 set 2dviewer 0
index ec9a18d637bbd62d3f601658f46a1bd442514672..f6e31f60fd18a3f5b0f7ebb96a21e1ded46f2580 100755 (executable)
@@ -8,10 +8,10 @@ pload QAcommands
 set wall_thickness 10
 set dia1 30
 set dia2 50
-set length 100
+set ll 100
 set major_radius 200
 
-OCC332 ${wall_thickness} ${dia1} ${dia2} ${length} ${major_radius}
+OCC332 ${wall_thickness} ${dia1} ${dia2} ${ll} ${major_radius}
 
 checkshape wallSolid_
 checkshape gasSolid_
index 009d4ef180b43124c63851090143f0e74ec2c8b3..34b9cbbe01d087981a1be7233e2005e8414f55bb 100755 (executable)
@@ -15,6 +15,5 @@ explode a e
 blend result a 2 a_18
 checkshape result
 
-set check_square 1
 set square 593.527
 set 2dviewer 0
index bc7536c1b421c3acef46b26891a60198634df93c..100a457d911cde0fc2d1a1f5f8b3045e62d11250 100755 (executable)
@@ -18,6 +18,5 @@ donl a a_5_6
 chamf result a a_5_6 a_5 A 2 45
 checkshape result
 
-set check_square 1
 set square 589.268
 set 2dviewer 0
index f12b62d5f348272bef5eff4c31b0fdffc11a4858..e19b57ea85de2809bfcce129409288f830caafa5 100755 (executable)
@@ -13,6 +13,5 @@ offset su1 su 1
 
 mkface result su1
 
-set check_square 1
 set square 7960.45
 set 2dviewer 0
index 65bd53b7f65882352545ecf74a8848d9208b4ae2..aee0b215e5f19c3020a02c0f971448157aabdbfe 100755 (executable)
@@ -13,6 +13,5 @@ offset su2 su -1
 
 mkface result su2
 
-set check_square 1
 set square 7181.83
 set 2dviewer 0
index c5b7d809600c22a5be44c34f9cb77ae029c94fd7..378a38112b0f99c3fdb31226d82959221cc9a210 100755 (executable)
@@ -14,7 +14,6 @@ offset r s 1
 
 mkface result s
 
-set check_square 1
 set square 1256.64
 set 2dviewer 0
 
index 142ed50f8e0e562c1d8c2bd99565dc0ad581508b..391810f0b0e8d6bc23192efa395a7bad34aa39ff 100755 (executable)
@@ -12,7 +12,6 @@ checkshape sh_2
 bfuse result sh_1 sh_2
 checkshape result
 
-set check_square 1
 set square 665013
 set 2dviewer 0
 
index 4aaf933827ca0ca8cb6640185534c5fd833ffa5d..3811648b0314145e3f3ab0f3b9713afef840517b 100755 (executable)
@@ -12,7 +12,6 @@ checkshape sh_2
 bfuse result sh_2 sh_1
 checkshape result
 
-set check_square 1
 set square 665013
 set 2dviewer 0
 
index f9f051c0f566397dbc21e8e0eff8e098ad7c7c85..c11b07dc42e7eeaee71bab7dcdf244467a325b53 100755 (executable)
@@ -12,7 +12,6 @@ restore [locate_data_file OCC380b.rle] b
 
 bcommon result a b
 
-set check_square 1
 set square 21.154
 set 2dviewer 0
 
index 869c81432fbb4d942b9971bcf6ec82c0b8287cff..f340025d38bbe53a067b7dbc51cef28f0918df8b 100755 (executable)
@@ -12,6 +12,5 @@ restore [locate_data_file OCC380b.rle] b
 
 bcommon result b a
 
-set check_square 1
 set square 21.154
 set 2dviewer 0
index e5507c9c7425f0842ad6aef589c8f1cc869b55cb..bdc5055c5011fea3b9920847f06ab6dcc75fe9f4 100755 (executable)
@@ -12,6 +12,5 @@ checkshape b
 bfuse result a b
 checkshape result
 
-set check_square 1
 set square 11400
 set 2dviewer 0
index b13213f5aa0eeaeb1205ea333e92cf608714efa7..507896eeab2de434ddc5feee970810566f6c0cf0 100755 (executable)
@@ -12,7 +12,6 @@ checkshape b
 bfuse result b a
 checkshape result
 
-set check_square 1
 set square 11400
 set 2dviewer 0
 
index c885ca0585ea6144d36fbe33e40d3e5799d5bff0..dead6ca60c8b9ae0c1647f8bcfe730c85a99c126 100755 (executable)
@@ -12,7 +12,7 @@ explode sh e
 fillet result sh 15 sh_14
 checkshape result
 
-set square 1
+set square 177328
 set 2dviewer 0
 
 
index 054d0267e965f07b0eea567f3ce788aa1b3157d0..2af68605745477f87acad78936bc505eaa42320a 100755 (executable)
@@ -9,6 +9,5 @@ checkshape res
 
 nurbsconvert result res
 
-set check_square 1
 set square 693.577
 set 2dviewer 0
index 6e3063ec0ed4ff38956477c83865aea4c5fda493..75472b6a9705df8f33eadd99198d01ae6ae9b3ec 100755 (executable)
@@ -26,6 +26,5 @@ checkshape a_2
 bfuse result a_1 a_2
 checkshape result
 
-set check_square 1
 set square 10
 set 2dviewer 0
index 5968bcaca898c6fe40fb23f6f4cfbe93d3dda0ba..d2b2a15e970916ed56e329460971e4cd69c5e1a3 100755 (executable)
@@ -14,6 +14,5 @@ checkshape a_2
 
 bfuse result a_1 a_2
 
-set check_square 1
 set square 4949.79
 set 2dviewer 0
index 5b2e296d82fa6bb1f731427caefaa53b1932055a..7db5f09b7c56c94937992c9acf613eba1b703c67 100755 (executable)
@@ -16,6 +16,5 @@ explode a e
 blend result a 1 a_17 1 a_5 1 a_1 1 a_2 1 a_16 1 a_20 1 a_3 1 a_11 1 a_10 1 a_4
 checkshape result
 
-set check_square 1
 set square 7677.49
 set 2dviewer 0
index 46428f8005541040031487485685c11a64d832e9..f1cdc4f1f5fc0df7df2bb83b161e671ea5e5b13a 100755 (executable)
@@ -20,7 +20,6 @@ if [catch {blend result a 13 a_41 } res] {
     puts "OCC601 OK: function BLEND works without exception"
     checkshape result
     
-    set check_square 1
     set square 10
     set 2dviewer 0
 }
index 998f762324dbdd441f28e0b4526f4bb32245b724..98f29e83fd70c28b96f63d02ac1bc183ad2806ff 100755 (executable)
@@ -16,6 +16,5 @@ checkshape a_2
 bfuse result a_1 a_2
 checkshape result
 
-set check_square 1
 set square 531.197
 set 2dviewer 0
index 71616d41b137da068c53cbc86eaa2628c29a56b3..a9efdc484ac88aa84a819e726223170cd624dec1 100755 (executable)
@@ -17,6 +17,5 @@ bop a_1 a_2
 bopfuse result
 checkshape result
 
-set check_square 1
 set square 531.197
 set 2dviewer 0
index 308a525d320b5eb680db20ff7e3bea718bfaab96..3cdd5ce25b90b6180cb81bc4c3d545eb174a50e5 100755 (executable)
@@ -16,6 +16,5 @@ checkshape a_2
 bfuse result a_2 a_1
 checkshape result
 
-set check_square 1
 set square 531.197
 set 2dviewer 0
index af394df2e80e8e63c789d787b1aff13d585b2bcb..91e614ef64823bc3310b9661b28249240bc1129e 100755 (executable)
@@ -1,6 +1,4 @@
 puts "TODO OCC12345 ALL: Faulty shapes in variables faulty_1 to faulty_"
-puts "TODO OCC12345 ALL: Error : The command is not valid. The volume is 0."
-puts "TODO OCC12345 ALL: Error : The volume of result shape is 0"
 
 puts "================"
 puts "BUC61023"
@@ -18,8 +16,7 @@ revol result sh 0 0 0 0 0 1 360
 
 checkshape result
 
-set check_square 1
-set volume 10
+set square 1.0134e+06
 set 2dviewer 0
 
 
diff --git a/tests/bugs/moddata/bug726_3 b/tests/bugs/moddata/bug726_3
deleted file mode 100755 (executable)
index 708f6d2..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-puts "TODO OCC12345 ALL: Tcl Exception: result is not a topological shape!!!"
-puts "TODO OCC12345 ALL: TEST INCOMPLETE"
-
-puts "========"
-puts "OCC726"
-puts "SAM1594"
-puts "========"
-puts ""
-######################################
-## Boolean operations are impossible on the attachment.
-######################################
-
-restore [locate_data_file OCC726.brep] a 
-explode a
-checkshape a_1
-checkshape a_2
-
-bcut result a_2 a_1
-
-checkshape result
-
-set check_square 1
-set square 10
-set 2dviewer 0
index afdf179a46eacdaa63452cedcb25ba7a555b21c7..7be84277bca98518533dae594b33dacb18b42923 100755 (executable)
@@ -10,9 +10,9 @@ restore [locate_data_file OCC766.draw] c
 
 set result [proj c 30 3.944304526105059e-31 20.0]
 
-set length [llength $result]
+set ll [llength $result]
 
-if {$length > 0} {
+if {$ll > 0} {
   puts "OCC770 OK"
 } else {
   puts "Faulty OCC770"
diff --git a/tests/bugs/moddata/end b/tests/bugs/moddata/end
deleted file mode 100755 (executable)
index 48b054a..0000000
+++ /dev/null
@@ -1,120 +0,0 @@
-if { [info exist check_square] } {
-    if { [info exists square] } {
-       set prop "square"
-       set mass $square
-       regexp {Mass +: +([-0-9.+eE]+)} [sprops result] full m      
-    }
-    
-    if { [info exists volume] } {
-       set prop "volume"
-       set mass $volume
-       regexp {Mass +: +([-0-9.+eE]+)} [vprops result] full m      
-    }
-    
-    if { [info exists length] } {
-       set prop "length"
-        set mass $length
-        regexp {Mass +: +([-0-9.+eE]+)} [lprops result] full m
-        puts "checksection"
-        puts [checksection result]
-    }
-
-   #if mass (length or square) is empty in test case then result should be an empty shape.
-   if { [string compare "$mass" "empty"] != 0 } {
-      if { $m == 0 } {
-                puts "Error : The command is not valid. The $prop is 0."
-      }
-      if { $mass > 0 } {
-        puts "The expected $prop is $mass"
-      }
-      #check of change of square is < 1%
-      if { ($mass != 0 && [expr 1.*abs($mass - $m)/$mass] > 0.01) || ($mass == 0 && $m != 0) } {
-        puts "Error : The $prop of result shape is $m"
-      }
-    } else {
-      if { $m != 0 } {
-                puts "Error : The command is not valid. The $prop is $m"
-      }
-    }
-}
-if { [info exists nb_v_good] } {
-    regexp {VERTEX +: +([-0-9.+eE]+)} $nb_info full nb_v
-    if { ${nb_v} != ${nb_v_good} } {
-       puts "Error : Result shape is WRONG because it must contains ${nb_v_good} vertexes instead of ${nb_v}"
-    } else {
-       puts "Result shape contains ${nb_v} vertexes"
-    }
-}
-
-if { [info exists nb_e_good] } {
-    regexp {EDGE +: +([-0-9.+eE]+)} $nb_info full nb_e
-    if { ${nb_e} != ${nb_e_good} } {
-        puts "Error : Result shape is WRONG because it must contains ${nb_e_good} edges instead of ${nb_e}"
-    } else {
-       puts "Result shape contains ${nb_e} edges"
-    }
-}
-
-if { [info exists nb_w_good] } {
-    regexp {WIRE +: +([-0-9.+eE]+)} $nb_info full nb_w
-    if { ${nb_w} != ${nb_w_good} } {
-        puts "Error : Result shape is WRONG because it must contains ${nb_w_good} wires instead of ${nb_w}"
-    } else {
-       puts "Result shape contains ${nb_w} wires"
-    }
-}
-
-if { [info exists nb_f_good] } {
-    regexp {FACE +: +([-0-9.+eE]+)} $nb_info full nb_f
-    if { ${nb_f} != ${nb_f_good} } {
-        puts "Error : Result shape is WRONG because it must contains ${nb_f_good} faces instead of ${nb_f}"
-    } else {
-        puts "Result shape contains ${nb_f} faces"
-    }
-}
-
-if { [info exists nb_sh_good] } {
-    regexp {SHELL +: +([-0-9.+eE]+)} $nb_info full nb_sh
-    if { ${nb_sh} != ${nb_sh_good} } {
-       puts "Error : Result shape is WRONG because it must contains ${nb_sh_good} shells instead of ${nb_sh}"
-    } else {
-       puts "Result shape contains ${nb_sh} shells"
-    }
-}
-
-if { [info exists nb_sol_good] } {
-    regexp {SOLID +: +([-0-9.+eE]+)} $nb_info full nb_sol
-    if { ${nb_sol} != ${nb_sol_good} } {
-       puts "Error : Result shape is WRONG because it must contains ${nb_sol_good} solids instead of ${nb_sol}"
-    } else {
-        puts "Result shape contains ${nb_sol} solids"
-    }
-}
-
-if { [info exists nb_compsol_good] } {
-    regexp {COMPSOLID +: +([-0-9.+eE]+)} $nb_info full nb_compsol
-    if { ${nb_compsol} != ${nb_compsol_good} } {
-        puts "Error : Result shape is WRONG because it must contains ${nb_compsol_good} compsolids instead of ${nb_compsol}"
-    } else {
-        puts "Result shape contains ${nb_compsol} compsolids"
-    }
-}
-
-if { [info exists nb_compound_good] } {
-    regexp {COMPOUND +: +([-0-9.+eE]+)} $nb_info full nb_compound
-    if { ${nb_compound} != ${nb_compound_good} } {
-        puts "Error : Result shape is WRONG because it must contains ${nb_compound_good} compounds instead of ${nb_compound}"
-    } else {
-        puts "Result shape contains ${nb_compound} compounds"
-    }
-}
-
-if { [info exists nb_shape_good] } {
-    regexp {SHAPE +: +([-0-9.+eE]+)} $nb_info full nb_shape
-    if { ${nb_shape} != ${nb_shape_good} } {
-        puts "Error : Result shape is WRONG because it must contains ${nb_shape_good} shapes instead of ${nb_shape}"
-    } else {
-        puts "Result shape contains ${nb_shape} shapes"
-    }
-}
-
index 332f598bfb3c1a5bd7ce71ccc84179e4de3168aa..30a16449a1ef95a98f144d3af73b9ca0360dd3d5 100755 (executable)
@@ -15,7 +15,6 @@ checkshape tool
 
 bcut result shape tool
 
-set check_square 1
 set square 3166.93
 set 2dviewer 0
 
index f41f11d3b2e4bf1be0928ff50418f2fb8b3d6c4f..01e6423b0a592205d21985ed76c7b3fe31912f8d 100755 (executable)
@@ -14,6 +14,5 @@ checkshape tool
 
 bcut result shape tool
 
-set check_square 1
 set square 2369.43
 set 2dviewer 0
index 548d4d314675dfd36f86affdc3d38d1708291f05..56a8ea7ab822e9d31409546ac55ae370d52c1b3c 100755 (executable)
@@ -1,5 +1,8 @@
 pload XDE
 
+set subgroup step
+
+
 
 
 
index bfee7430f57f107418683710f1143afdd33d9c26..659db06898292b5ba8d2c4fefa8fbf7ff6255c33 100755 (executable)
@@ -15,9 +15,7 @@ if [catch { stepread [locate_data_file trj12_b3-tu-203.stp] a * } res] {
     puts "Faulty ${BugNumber} : here is reading problem"
 } else {
     tpcompound result
-    set nb_info [nbshapes result]
     
-    set check_square 1
     set square 1.48021e+06
     set nb_v_good 1228
     set nb_e_good 1938
index 5f4dc975245f44689235deba777124a494b1b29f..bfed1e3792fc7f2c9e4c218d2e39021f05b45c5a 100755 (executable)
@@ -12,9 +12,7 @@ if [catch { stepread [locate_data_file OCC5027.stp] a * } res] {
    puts "Warning ${BugNumber} : here is reading problem"
 } else {
     tpcompound result
-    set nb_info [nbshapes result]
     
-    set check_square 1
     set square 159588
     set nb_v_good 44
     set nb_e_good 72
diff --git a/tests/bugs/step/end b/tests/bugs/step/end
deleted file mode 100755 (executable)
index 48b054a..0000000
+++ /dev/null
@@ -1,120 +0,0 @@
-if { [info exist check_square] } {
-    if { [info exists square] } {
-       set prop "square"
-       set mass $square
-       regexp {Mass +: +([-0-9.+eE]+)} [sprops result] full m      
-    }
-    
-    if { [info exists volume] } {
-       set prop "volume"
-       set mass $volume
-       regexp {Mass +: +([-0-9.+eE]+)} [vprops result] full m      
-    }
-    
-    if { [info exists length] } {
-       set prop "length"
-        set mass $length
-        regexp {Mass +: +([-0-9.+eE]+)} [lprops result] full m
-        puts "checksection"
-        puts [checksection result]
-    }
-
-   #if mass (length or square) is empty in test case then result should be an empty shape.
-   if { [string compare "$mass" "empty"] != 0 } {
-      if { $m == 0 } {
-                puts "Error : The command is not valid. The $prop is 0."
-      }
-      if { $mass > 0 } {
-        puts "The expected $prop is $mass"
-      }
-      #check of change of square is < 1%
-      if { ($mass != 0 && [expr 1.*abs($mass - $m)/$mass] > 0.01) || ($mass == 0 && $m != 0) } {
-        puts "Error : The $prop of result shape is $m"
-      }
-    } else {
-      if { $m != 0 } {
-                puts "Error : The command is not valid. The $prop is $m"
-      }
-    }
-}
-if { [info exists nb_v_good] } {
-    regexp {VERTEX +: +([-0-9.+eE]+)} $nb_info full nb_v
-    if { ${nb_v} != ${nb_v_good} } {
-       puts "Error : Result shape is WRONG because it must contains ${nb_v_good} vertexes instead of ${nb_v}"
-    } else {
-       puts "Result shape contains ${nb_v} vertexes"
-    }
-}
-
-if { [info exists nb_e_good] } {
-    regexp {EDGE +: +([-0-9.+eE]+)} $nb_info full nb_e
-    if { ${nb_e} != ${nb_e_good} } {
-        puts "Error : Result shape is WRONG because it must contains ${nb_e_good} edges instead of ${nb_e}"
-    } else {
-       puts "Result shape contains ${nb_e} edges"
-    }
-}
-
-if { [info exists nb_w_good] } {
-    regexp {WIRE +: +([-0-9.+eE]+)} $nb_info full nb_w
-    if { ${nb_w} != ${nb_w_good} } {
-        puts "Error : Result shape is WRONG because it must contains ${nb_w_good} wires instead of ${nb_w}"
-    } else {
-       puts "Result shape contains ${nb_w} wires"
-    }
-}
-
-if { [info exists nb_f_good] } {
-    regexp {FACE +: +([-0-9.+eE]+)} $nb_info full nb_f
-    if { ${nb_f} != ${nb_f_good} } {
-        puts "Error : Result shape is WRONG because it must contains ${nb_f_good} faces instead of ${nb_f}"
-    } else {
-        puts "Result shape contains ${nb_f} faces"
-    }
-}
-
-if { [info exists nb_sh_good] } {
-    regexp {SHELL +: +([-0-9.+eE]+)} $nb_info full nb_sh
-    if { ${nb_sh} != ${nb_sh_good} } {
-       puts "Error : Result shape is WRONG because it must contains ${nb_sh_good} shells instead of ${nb_sh}"
-    } else {
-       puts "Result shape contains ${nb_sh} shells"
-    }
-}
-
-if { [info exists nb_sol_good] } {
-    regexp {SOLID +: +([-0-9.+eE]+)} $nb_info full nb_sol
-    if { ${nb_sol} != ${nb_sol_good} } {
-       puts "Error : Result shape is WRONG because it must contains ${nb_sol_good} solids instead of ${nb_sol}"
-    } else {
-        puts "Result shape contains ${nb_sol} solids"
-    }
-}
-
-if { [info exists nb_compsol_good] } {
-    regexp {COMPSOLID +: +([-0-9.+eE]+)} $nb_info full nb_compsol
-    if { ${nb_compsol} != ${nb_compsol_good} } {
-        puts "Error : Result shape is WRONG because it must contains ${nb_compsol_good} compsolids instead of ${nb_compsol}"
-    } else {
-        puts "Result shape contains ${nb_compsol} compsolids"
-    }
-}
-
-if { [info exists nb_compound_good] } {
-    regexp {COMPOUND +: +([-0-9.+eE]+)} $nb_info full nb_compound
-    if { ${nb_compound} != ${nb_compound_good} } {
-        puts "Error : Result shape is WRONG because it must contains ${nb_compound_good} compounds instead of ${nb_compound}"
-    } else {
-        puts "Result shape contains ${nb_compound} compounds"
-    }
-}
-
-if { [info exists nb_shape_good] } {
-    regexp {SHAPE +: +([-0-9.+eE]+)} $nb_info full nb_shape
-    if { ${nb_shape} != ${nb_shape_good} } {
-        puts "Error : Result shape is WRONG because it must contains ${nb_shape_good} shapes instead of ${nb_shape}"
-    } else {
-        puts "Result shape contains ${nb_shape} shapes"
-    }
-}
-
index d4ae0a46751e901effa48d534d4c5338c82c7ff0..18fe572f9eb24a12006cb04e54e6ad08666e6fe5 100755 (executable)
@@ -1,3 +1,7 @@
 pload QAcommands
 
+set subgroup vis
+
+
+
 
index e26ee4d8167193d83101a16a226498291f80de3a..37d15fb2eedf51a2f7cc19c72088e381a5b70b94 100755 (executable)
@@ -8,8 +8,8 @@ puts ""
 vinit
 set info [OCC138]
 
-set length [llength ${info}]
-if {${length} < 5 } {
+set ll [llength ${info}]
+if {${ll} < 5 } {
    puts "OCC138: Error (case 1)"
 } else {
   regexp {No of currents += +([-0-9.+eE]+)} $info full NbCurrents
index cae563f5232a19caad091c65af8beaecf301d386..feed9cb2e4680a2b1eb47576dc3be6ffca4ef09b 100755 (executable)
@@ -5,8 +5,8 @@ puts "========"
 vinit
 set info [OCC138LC]
 
-set length [llength ${info}]
-if {${length} < 5 } {
+set ll [llength ${info}]
+if {${ll} < 5 } {
    puts "OCC138: Error (case 1)"
 } else {
   regexp {No of selected += +([-0-9.+eE]+)} $info full NbCurrents
index c00a0725e92f0c1d1e98ae23eb592ac0aa831b5a..0d2aefda4e93a84d3c0cea79512862a2f3d754bb 100755 (executable)
@@ -49,14 +49,14 @@ if { $tri == 0 || $nod == 0 }  {
   set IsGood 0
 }
 
-regexp {Mass +: +([-0-9.+eE]+)} [sprops result] full square
+regexp {Mass +: +([-0-9.+eE]+)} [sprops result] full sq
 set good_square 8623.6
-set square_percent [expr abs(${square} - ${good_square}) / double(${good_square}) * 100.]
+set square_percent [expr abs(${sq} - ${good_square}) / double(${good_square}) * 100.]
 
 set percent_max 0.1
 
 puts "good_square = ${good_square}"
-puts "square = ${square}"
+puts "square = ${sq}"
 puts "square_percent = ${square_percent}"
 
 if {${square_percent} > ${percent_max}} {
index 6ee1b16955ca969b6b849e8f0b8d00c8891fd8a1..e6785169fb51c95c5c453a4c0b572e5a3c11522e 100755 (executable)
@@ -26,14 +26,14 @@ set str "(center)"
 set scale_text 4.0
 set length_dist -21.0
 set angle 30.0
-set length 5.0
+set ll 5.0
 set txtAngle 0.
 set txtPosH 0.
 set txtPosV 3.
 
 v2dinit
 
-OCC672_Length $x1 $y1 $x2 $y2 $str $scale_text $length_dist $angle $length $x3 $y3 $x4 $y4 $txtAngle $txtPosH $txtPosV
+OCC672_Length $x1 $y1 $x2 $y2 $str $scale_text $length_dist $angle $ll $x3 $y3 $x4 $y4 $txtAngle $txtPosH $txtPosV
 
 v2dfit
 
index 1146b54a95aecae96fe1c270e18b33477ca4f0a5..088f1fdd54e567561f5f319f7c2d9c1203a3ca02 100755 (executable)
@@ -26,14 +26,14 @@ set str "(center)"
 set scale_text 4.
 set length_dist -10.0
 set angle 30.0
-set length 5.0
+set ll 5.0
 set txtAngle 0.
 set txtPosH 0.
 set txtPosV 3.
 
 v2dinit
 
-OCC672_ShortLength $x1 $y1 $x2 $y2 $str $scale_text $length_dist $angle $length $x3 $y3 $x4 $y4 $txtAngle $txtPosH $txtPosV
+OCC672_ShortLength $x1 $y1 $x2 $y2 $str $scale_text $length_dist $angle $ll $x3 $y3 $x4 $y4 $txtAngle $txtPosH $txtPosV
 
 v2dfit
 
index ded93e3e5d589a3ba00281190c518432caceb344..9ff0c1e65bbd83ebddd51c7dcab64f8087c20a15 100755 (executable)
@@ -1,5 +1,7 @@
 pload XDE
 
+set subgroup xde
+
 proc GetPercent {Value GoodValue} {
    set Percent 0.
    if {${GoodValue} != 0.} {
index bf0274cdc9b2055aa5adbe41607480eb8adbd67a..2305b49c8e190d4463e1fb3c2f4856edb52d8610 100755 (executable)
@@ -35,7 +35,7 @@ if [catch { stepread ${imagedir}/annie b *} res] {
 } else {
     renamevar b_1 res
     set info1 [nbshapes res]
-    regexp {Mass +: +([-0-9.+eE]+)} [sprops res] full square
+    regexp {Mass +: +([-0-9.+eE]+)} [sprops res] full sq
     regexp {VERTEX +: +([-0-9.+eE]+)} $info1 full vertex
     regexp {EDGE +: +([-0-9.+eE]+)} $info1 full edge
     regexp {WIRE +: +([-0-9.+eE]+)} $info1 full wire
@@ -46,7 +46,7 @@ if [catch { stepread ${imagedir}/annie b *} res] {
     regexp {COMPOUND +: +([-0-9.+eE]+)} $info1 full compound
     regexp {SHAPE +: +([-0-9.+eE]+)} $info1 full shape
        
-    if { $square != $good_square
+    if { $sq != $good_square
        || $vertex != $good_vertex
        || $edge != $good_edge
        || $wire != $good_wire