0023457: Slow text rendering
[occt.git] / tests / bugs / modalg / bug5805_41
1 puts "TODO OCC11111 ALL: Error : Result shape is WRONG"
2 puts "TODO OCC11111 ALL: Error : The square of result shape is"
3 puts "TODO ?OCC11111 ALL: Faulty OCC5805 : result is not Closed shape"
4 puts "TODO ?OCC11111 ALL: Error : The command is not valid"
5 puts "============"
6 puts "OCC5805"
7 puts "============"
8
9 #######################################################################
10 # BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
11 #######################################################################
12
13 set BugNumber OCC5805
14
15 set z1 5
16 set z2 -5
17
18 # beziercurve1
19 beziercurve bc1 5 5 5 ${z1} 5 -5 ${z1} -5 -5 ${z1} -5 5 ${z1} 5 5 ${z1}
20 mkedge e1 bc1
21 wire UpCover e1
22
23 # beziercurve2
24 beziercurve bc2 5 4 4 ${z2} 4 -4 ${z2} -4 -4 ${z2} -4 4 ${z2} 4 4 ${z2}
25 mkedge e2 bc2
26 wire BottomCover e2
27
28 set issolid 1
29 set isruled 1
30 if [catch { thrusections s ${issolid} ${isruled} UpCover BottomCover } catch_result] {
31    puts "Faulty ${BugNumber} : thrusections is wrong"
32    
33 }
34
35 set distance -0.001
36 catch { OFFSETSHAPE $distance {} $calcul $type }
37 # Null result
38
39
40 set square 495.635
41
42 set nb_v_good 2
43 set nb_e_good 3
44 set nb_w_good 3
45 set nb_f_good 3
46 set nb_sh_good 1
47 set nb_sol_good 1
48 set nb_compsol_good 0
49 set nb_compound_good 0
50 set nb_shape_good 13
51
52
53 set index [lsearch [whatis s] Closed]
54 if {$index == -1} {
55   puts "Faulty ${BugNumber} : s is not Closed shape"
56   
57 }
58
59 set index [lsearch [whatis result] Closed]
60 if {$index == -1} {
61   puts "Faulty ${BugNumber} : result is not Closed shape"
62   
63 }
64
65
66 set 2dviewer 0