0026742: Update test cases for using checknbshapes procedure instead of global variables
[occt.git] / tests / pipe / specific / W2
index d3db471..4350d24 100755 (executable)
@@ -15,21 +15,18 @@ puts "##########################################################################
 puts "# (case /-/-T -R/-R -S/)"
 puts "###############################################################################"
 
-set setsweepOptions ""
-set addsweepOptions "-T -R"
-set buildsweepOptions "-R -S"
+checkshape s1
+checkshape s2
+
+mksweep s1
+
+addsweep s2 -T -R
+if [catch { buildsweep result -R -S} res] {
+  puts "Faulty OCC1477: buildsweep is wrong"
+}
 
 set square 53385.6
 set volume 174243
 
-set nb_v_good 59
-set nb_e_good 124
-set nb_w_good 53
-set nb_f_good 53
-set nb_sh_good 1
-set nb_sol_good 1
-set nb_compsol_good 0
-set nb_compound_good 0
-set nb_shape_good 291
-
+checknbshapes result -vertex 59 -edge 124 -wire 53 -face 53 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 291
 set 2dviewer 0