9aa684ed |
1 | puts "TODO ?OCC25718 ALL: ERROR. offsetperform operation not done." |
2 | puts "TODO ?OCC25718 ALL: Faulty OCC5805 : result is not Closed shape" |
3 | puts "TODO ?OCC25718 ALL: Tcl Exception: result is not a topological shape!!!" |
4 | puts "TODO ?OCC25718 ALL: TEST INCOMPLETE" |
3bea4c16 |
5 | |
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 | copy e1 e2 |
26 | ttranslate e2 0 0 ${z2} |
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 |