bad76cfc |
1 | puts "TODO OCC23068 ALL: ERROR. offsetperform operation not done." |
2 | puts "TODO OCC25925 ALL: Error: The command cannot be built" |
3 | puts "TODO OCC25925 ALL: Tcl Exception: result is not a topological shape" |
4 | puts "TODO OCC25925 ALL: TEST INCOMPLETE" |
ab87e6fc |
5 | |
3bea4c16 |
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 | beziercurve bc2 5 4 4 ${z2} 4 -4 ${z2} -4 -4 ${z2} -4 4 ${z2} 4 4 ${z2} |
26 | mkedge e2 bc2 |
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_3} $calcul $type } |
38 | # Bad result |
39 | |
40 | |
58cf74e0 |
41 | checkprops result -s 495.635 |
42 | checkshape result |
3bea4c16 |
43 | |
a4eba920 |
44 | checknbshapes result -vertex 2 -edge 3 -wire 3 -face 3 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 13 |
3bea4c16 |
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 | |
5747059b |
59 | checkview -display result -2d -path ${imagedir}/${test_image}.png |