Correction of testing case for issue 24374
[occt.git] / tests / bugs / modalg_2 / bug5805_12
CommitLineData
3bea4c16 1puts "============"
2puts "OCC5805"
3puts "============"
4
5#######################################################################
6# BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
7#######################################################################
8
9set BugNumber OCC5805
10
11# ellipse1
12ellipse ell 10 0 0 1 0 0 5 3
13mkedge ee1 ell
14wire UpCover ee1
15
16# ellipse2
17copy ee1 ee2
18ttranslate ee2 -20 0 0
19wire BottomCover ee2
20
21set issolid 1
22set isruled 1
23if [catch { thrusections s ${issolid} ${isruled} UpCover BottomCover } catch_result] {
24 puts "Faulty ${BugNumber} : thrusections is wrong"
25
26}
27
28set distance -0.5
29catch { OFFSETSHAPE $distance {s_2 s_3} $calcul $type }
30
31
32set square 982.254
33
34set nb_v_good 3
35set nb_e_good 5
36set nb_w_good 6
37set nb_f_good 4
38set nb_sh_good 1
39set nb_sol_good 1
40set nb_compsol_good 0
41set nb_compound_good 0
42set nb_shape_good 20
43
44
45set index [lsearch [whatis s] Closed]
46if {$index == -1} {
47 puts "Faulty ${BugNumber} : s is not Closed shape"
48
49}
50
51set index [lsearch [whatis result] Closed]
52if {$index == -1} {
53 puts "Faulty ${BugNumber} : result is not Closed shape"
54
55}
56
57
58set 2dviewer 0