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