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