0023457: Slow text rendering
[occt.git] / tests / bugs / modalg / bug5805_8
1 puts "============"
2 puts "OCC5805"
3 puts "============"
4
5 #######################################################################
6 # BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
7 #######################################################################
8
9 set BugNumber OCC5805
10
11 set z1 10
12 set z2 -10
13
14 # circle1
15 circle c1 0 0 ${z1} 5
16 mkedge ec1 c1
17 wire UpCover ec1
18
19 # circle2
20 circle c2 0 0 ${z2} 5
21 mkedge ec2 c2
22 wire BottomCover ec2
23
24 set issolid 1
25 set isruled 1
26 if [catch { thrusections s ${issolid} ${isruled} UpCover BottomCover } catch_result] {
27    puts "Faulty ${BugNumber} : thrusections is wrong"
28    
29 }
30
31 set distance -0.5
32 catch { OFFSETSHAPE $distance {s_2 s_3} $calcul $type }
33
34
35 set square 1223.65
36
37 set nb_v_good 4
38 set nb_e_good 6
39 set nb_w_good 6
40 set nb_f_good 4
41 set nb_sh_good 1
42 set nb_sol_good 1
43 set nb_compsol_good 0
44 set nb_compound_good 0
45 set nb_shape_good 22
46
47
48 set index [lsearch [whatis s] Closed]
49 if {$index == -1} {
50   puts "Faulty ${BugNumber} : s is not Closed shape"
51   
52 }
53
54 set index [lsearch [whatis result] Closed]
55 if {$index == -1} {
56   puts "Faulty ${BugNumber} : result is not Closed shape"
57   
58 }
59
60
61 set 2dviewer 0