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