0029351: Boolean Operations create invalid pcurves
[occt.git] / tests / bugs / modalg_4 / bug5806
1 puts "TODO OCC25925 ALL: ERROR. offsetperform operation not done."
2 puts "============"
3 puts "OCC5806"
4 puts "============"
5 puts ""
6 ######################################################
7 # BRepOffsetAPI_MakeThickSolid fails to build a result
8 ######################################################
9
10 set BugNumber OCC5806
11
12 puts "demonstration of pipes and hollowing for GTISoft"
13 puts ""
14 puts "Scenario 3A: Hollowed general pipe - ThroughSection with following shell reconstruction"
15
16 circle c 0 100 0 1 0 0 5 
17 mkedge ec c
18 wire wc ec
19 polyline pl 10 90 -10  10 90 10  10 110 10  10 110 -10  10 90 -10
20
21 if { [catch { thrusections resthru 1 1 wc pl } catch_result] } {
22    puts "Faulty ${BugNumber} : thrusections is wrong"
23 }
24
25 # straighforward hollowing will fail due to problems in the algorithm
26 explode resthru f
27
28 if { [catch { offsetshape result resthru -0.5 resthru_6 resthru_7 } catch_result] } {
29    puts "Faulty ${BugNumber} : offsetshape is wrong"
30 }
31
32 checkmaxtol result -min_tol 1.
33
34 checkprops result -s 1116.06 
35 checkshape result
36
37 checknbshapes result -vertex 10 -edge 15 -wire 7 -face 7 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 41
38 checkview -display result -2d -path ${imagedir}/${test_image}.png