0023793: Tests failing when launched without data files
[occt.git] / tests / bugs / modalg_4 / bug8842_4
1 puts "TODO OCC11111 ALL: OCC8842: Faulty"
2 puts "TODO OCC11111 ALL: \\*\\* Exception"
3 puts "TODO OCC11111 ALL: An exception was caught"
4
5 puts "============"
6 puts "OCC8842"
7 puts "============"
8 puts ""
9 #######################################################################
10 # Errors in Offset Shape algorithm working with bspline and surface of revolution
11 #######################################################################
12
13 set BugNumber OCC8842
14
15 if {[info commands testreadiges] == ""} {pload XSDRAW}
16
17 proc myoffset {result sh val tan} {
18   if {$tan == 1} {
19     offsetparameter 1e-7 p i
20   } else {
21     offsetparameter 1e-7 p a
22   }
23   uplevel offsetload $sh $val
24   uplevel offsetperform $result
25 }
26
27 testreadiges [locate_data_file OCC8842_cone_CATIA.igs] a1
28
29 sewing con1 a1
30
31 # join type Intersection
32 puts "***** offsetting with join type Intersection"
33 puts "   cone_CATIA - 5"
34
35 if [catch { myoffset result con1 -5 1 } catch_result] {
36   puts "${BugNumber}: Faulty (1)"
37 } else {
38 set square 3542.24
39 set nb_v_good 60
40 set nb_e_good 90
41 set nb_w_good 42
42 set nb_f_good 40
43 set nb_sh_good 5
44 set nb_sol_good 5
45 set nb_compsol_good 0
46 set nb_compound_good 1
47 set nb_shape_good 243
48
49 }
50
51 set 2dviewer 0