0031304: Configuration - TKACIS building failure due to duplicated symbol GeomFillFus...
[occt.git] / tests / bugs / modalg_2 / bug5805_2
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
31 checkmaxtol result -min_tol 1.
32
33 checkprops result -s 1006.59
34 checkshape result
35
36 checknbshapes result -vertex 3 -edge 5 -wire 6 -face 4 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 20
37 checkview -display result -2d -path ${imagedir}/${test_image}.png