0022240: Bad triangulation of transformed shapes
[occt.git] / tests / bugs / modalg_2 / bug5805_34
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 x1 10
12 set x2 -10
13
14 # ellipse1
15 ellipse ell1 ${x1} 0 0 1 0 0 5 3
16 mkedge ee1 ell1
17 wire UpCover ee1
18
19 # ellipse2
20 ellipse ell2 ${x2} 0 0 1 0 0 4 2
21 mkedge ee2 ell2
22 wire BottomCover ee2
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} $calcul $type }
33
34
35 set square 881.591
36
37 set nb_v_good 4
38 set nb_e_good 6
39 set nb_w_good 6
40 set nb_f_good 5
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 23
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