3bea4c16 |
1 | puts "============" |
2 | puts "OCC5805" |
3 | puts "============" |
4 | |
5 | ####################################################################### |
6 | # BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results. |
7 | ####################################################################### |
8 | |
9 | set BugNumber OCC5805 |
10 | |
11 | # pcone |
12 | pcone s 30 5 20 |
13 | |
27a66128 |
14 | explode s sh |
15 | renamevar s_1 s |
16 | |
3bea4c16 |
17 | set distance -0.5 |
18 | catch { OFFSETSHAPE $distance {} $calcul $type } |
19 | |
20 | |
58cf74e0 |
21 | checkprops result -s 5829.59 |
22 | checkshape result |
3bea4c16 |
23 | |
a4eba920 |
24 | checknbshapes result -vertex 2 -edge 3 -wire 3 -face 3 -shell 1 -solid 0 -compsolid 0 -compound 0 -shape 12 |
3bea4c16 |
25 | |
26 | set index [lsearch [whatis s] Closed] |
27 | if {$index == -1} { |
28 | puts "Faulty ${BugNumber} : s is not Closed shape" |
29 | |
30 | } |
31 | |
32 | set index [lsearch [whatis result] Closed] |
33 | if {$index == -1} { |
34 | puts "Faulty ${BugNumber} : result is not Closed shape" |
35 | |
36 | } |
37 | |
38 | |
5747059b |
39 | checkview -display result -2d -path ${imagedir}/${test_image}.png |