0026233: BRepOffset_MakeOffset makes incorrect result
[occt.git] / tests / bugs / modalg_2 / bug5805_21
1
2 puts "============"
3 puts "OCC5805"
4 puts "============"
5
6 #######################################################################
7 # BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
8 #######################################################################
9
10 set BugNumber OCC5805
11
12 # pbsplinecurve1
13 pbsplinecurve pbc1 3 9 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 -1 0 0 1 -2 2 0 1 0 1 0 1 2 2 0 1 1 0 0 1 2 -2 0 1 0 -1 0 1 -2 -2 0 1
14 mkedge e1 pbc1
15 wire UpCover e1
16
17 # pbsplinecurve1
18 copy e1 e2
19 ttranslate e2 0 0 20
20 wire BottomCover e2
21
22 set issolid 1
23 set isruled 1
24 if [catch { thrusections s ${issolid} ${isruled} UpCover BottomCover } catch_result] {
25    puts "Faulty ${BugNumber} : thrusections is wrong"
26    
27 }
28
29 set distance -0.1
30 catch { OFFSETSHAPE $distance {} $calcul $type }
31
32
33 set square 253.902
34
35 set nb_v_good 2
36 set nb_e_good 3
37 set nb_w_good 3
38 set nb_f_good 3
39 set nb_sh_good 1
40 set nb_sol_good 1
41 set nb_compsol_good 0
42 set nb_compound_good 0
43 set nb_shape_good 13
44
45
46 set index [lsearch [whatis s] Closed]
47 if {$index == -1} {
48   puts "Faulty ${BugNumber} : s is not Closed shape"
49   
50 }
51
52 set index [lsearch [whatis result] Closed]
53 if {$index == -1} {
54   puts "Faulty ${BugNumber} : result is not Closed shape"
55   
56 }
57
58
59 set 2dviewer 0