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