61c421bf |
1 | puts "============" |
2 | puts "OCC5805" |
3 | puts "============" |
4 | puts "" |
5 | ###################################################### |
6 | # BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results. |
7 | ###################################################### |
8 | |
9 | set BugNumber OCC5805 |
10 | |
11 | puts "demonstration of pipes and hollowing for GTISoft" |
12 | puts "" |
13 | puts "Scenario 2A: Hollowed elliptical cylinder - ThroughSection and MakeThickSolid" |
14 | |
15 | ellipse e 10 60 0 1 0 0 5 3 |
16 | mkedge ee e |
17 | wire w1 ee |
18 | copy w1 w2 |
19 | ttranslate w2 -20 0 0 |
20 | |
21 | if { [catch { thrusections rthru2 1 1 w1 w2 } catch_result] } { |
22 | puts "Faulty ${BugNumber} : thrusections is wrong" |
23 | } |
24 | |
25 | explode rthru2 f |
26 | |
27 | if { [catch { offsetshape result rthru2 -0.5 rthru2_2 rthru2_3 } catch_result] } { |
28 | puts "Faulty ${BugNumber} : offsetshape is wrong" |
29 | } |
30 | |
fb60057d |
31 | checkmaxtol result -min_tol 1. |
61c421bf |
32 | |
58cf74e0 |
33 | checkprops result -s 1006.59 |
34 | checkshape result |
61c421bf |
35 | |
99c9a820 |
36 | checknbshapes result -t -wire 6 -face 4 -shell 1 -solid 1 |
5747059b |
37 | checkview -display result -2d -path ${imagedir}/${test_image}.png |