58cf74e0 |
1 | puts "TODO OCC25925 ALL: Error : The area of result shape is" |
3bea4c16 |
2 | |
3 | puts "============" |
4 | puts "OCC5805" |
5 | puts "OCC7582" |
6 | puts "============" |
7 | |
8 | ####################################################################### |
9 | # BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results. |
10 | ####################################################################### |
11 | # Bad result of offset operation |
12 | ####################################################################### |
13 | |
14 | set BugNumber OCC5805 |
15 | |
16 | set z1 10 |
17 | set z2 -10 |
18 | |
19 | # circle1 |
20 | circle c1 0 0 ${z1} 5 |
21 | mkedge ec1 c1 |
22 | wire UpCover ec1 |
23 | |
24 | # circle2 |
25 | circle c2 0 0 ${z2} 30 |
26 | mkedge ec2 c2 |
27 | wire BottomCover ec2 |
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.5 |
37 | catch { OFFSETSHAPE $distance {s_2 s_3} $calcul $type } |
38 | |
39 | |
58cf74e0 |
40 | checkprops result -s 1223.65 |
41 | checkshape result |
3bea4c16 |
42 | |
a4eba920 |
43 | checknbshapes result -vertex 4 -edge 6 -wire 6 -face 4 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 22 |
3bea4c16 |
44 | |
45 | set index [lsearch [whatis s] Closed] |
46 | if {$index == -1} { |
47 | puts "Faulty ${BugNumber} : s is not Closed shape" |
48 | |
49 | } |
50 | |
51 | set index [lsearch [whatis result] Closed] |
52 | if {$index == -1} { |
53 | puts "Faulty ${BugNumber} : result is not Closed shape" |
54 | |
55 | } |
56 | |
57 | |
5747059b |
58 | checkview -display result -2d -path ${imagedir}/${test_image}.png |