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