9aa684ed |
1 | puts "TODO ?OCC25718 ALL: Faulty OCC5805 : result is not Closed shape" |
2 | puts "TODO ?OCC25718 ALL: Tcl Exception: result is not a topological shape!!!" |
3 | puts "TODO ?OCC25718 ALL: Faulty shapes in variables faulty_1 to fauly_" |
4 | puts "TODO ?OCC25718 ALL: Error : The square of result shape is" |
5 | puts "TODO ?OCC25718 ALL: Error : Result shape is WRONG" |
6 | puts "TODO ?OCC25718 ALL: ERROR. offsetperform operation not done." |
7 | puts "TODO ?OCC25718 ALL: Faulty shapes in variables faulty_1 to faulty_" |
8 | puts "TODO ?OCC25718 ALL: TEST INCOMPLETE" |
ab87e6fc |
9 | |
3bea4c16 |
10 | puts "============" |
11 | puts "OCC5805" |
12 | puts "============" |
13 | |
14 | ####################################################################### |
15 | # BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results. |
16 | ####################################################################### |
17 | |
18 | set BugNumber OCC5805 |
19 | |
20 | set z1 5 |
21 | set z2 -5 |
22 | |
23 | # beziercurve1 |
24 | beziercurve bc1 5 5 5 ${z1} 5 -5 ${z1} -5 -5 ${z1} -5 5 ${z1} 5 5 ${z1} |
25 | mkedge e1 bc1 |
26 | wire UpCover e1 |
27 | |
28 | # beziercurve2 |
29 | beziercurve bc2 5 4 4 ${z2} 4 -4 ${z2} -4 -4 ${z2} -4 4 ${z2} 4 4 ${z2} |
30 | mkedge e2 bc2 |
31 | wire BottomCover e2 |
32 | |
33 | set issolid 1 |
34 | set isruled 1 |
35 | if [catch { thrusections s ${issolid} ${isruled} UpCover BottomCover } catch_result] { |
36 | puts "Faulty ${BugNumber} : thrusections is wrong" |
37 | |
38 | } |
39 | |
40 | set distance -0.001 |
41 | catch { OFFSETSHAPE $distance {s_2} $calcul $type } |
42 | # Bad result |
43 | |
44 | |
45 | set square 495.635 |
46 | |
47 | set nb_v_good 2 |
48 | set nb_e_good 3 |
49 | set nb_w_good 3 |
50 | set nb_f_good 3 |
51 | set nb_sh_good 1 |
52 | set nb_sol_good 1 |
53 | set nb_compsol_good 0 |
54 | set nb_compound_good 0 |
55 | set nb_shape_good 13 |
56 | |
57 | |
58 | set index [lsearch [whatis s] Closed] |
59 | if {$index == -1} { |
60 | puts "Faulty ${BugNumber} : s is not Closed shape" |
61 | |
62 | } |
63 | |
64 | set index [lsearch [whatis result] Closed] |
65 | if {$index == -1} { |
66 | puts "Faulty ${BugNumber} : result is not Closed shape" |
67 | |
68 | } |
69 | |
70 | |
71 | set 2dviewer 0 |