0024122: Hang-up during a topological operation.
[occt.git] / tests / bugs / modalg_2 / bug5805_48
1 puts "TODO ?OCC11111 ALL: Error : The square of result shape is"
2
3 puts "============"
4 puts "OCC5805"
5 puts "============"
6 #######################################################################
7 # BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
8 #######################################################################
9 cpulimit 8000
10 set BugNumber OCC5805
11
12 # pbsplinecurve1
13 pbsplinecurve pbc1 3 9 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 -1 0 0 1 -2 2 0 1 0 1 0 1 2 2 0 1 1 0 0 1 2 -2 0 1 0 -1 0 1 -2 -2 0 1
14 mkedge e1 pbc1
15 wire UpCover e1
16
17 # pbsplinecurve1
18 copy e1 e2
19 ttranslate e2 0 0 20
20 tscale e2 0 0 0 2
21 wire BottomCover e2
22
23 set issolid 1
24 set isruled 1
25 if [catch { thrusections s ${issolid} ${isruled} UpCover BottomCover } catch_result] {
26    puts "Faulty ${BugNumber} : thrusections is wrong"
27    
28 }
29
30 set distance -0.1
31 catch { OFFSETSHAPE $distance {s_3 s_2} $calcul $type }
32
33
34 set square 1451.05
35
36 set nb_v_good 4
37 set nb_e_good 6
38 set nb_w_good 6
39 set nb_f_good 4
40 set nb_sh_good 1
41 set nb_sol_good 1
42 set nb_compsol_good 0
43 set nb_compound_good 0
44 set nb_shape_good 22
45
46
47 set index [lsearch [whatis s] Closed]
48 if {$index == -1} {
49   puts "Faulty ${BugNumber} : s is not Closed shape"
50   
51 }
52
53 set index [lsearch [whatis result] Closed]
54 if {$index == -1} {
55   puts "Faulty ${BugNumber} : result is not Closed shape"
56   
57 }
58
59
60 set 2dviewer 0