0031304: Configuration - TKACIS building failure due to duplicated symbol GeomFillFus...
[occt.git] / tests / bugs / modalg_7 / bug24905
CommitLineData
a8b8f90d 1puts "========"
2puts "0024905: Boolean cut produced invalid result"
3puts "========"
4puts ""
5
6circle c1 0 0 0 0 -1 0 75
7circle c2 0 0 0 0 -1 0 65
8mkedge c1 c1
9mkedge c2 c2
10wire c1 c1
11wire c2 c2
12orientation c2 R
13mkplane f1 c1 1
14add c2 f1
15prism p1 f1 0 1000 0
16trotate p1 0 0 0 0 0 1 180
17circle c3 50 500 -2000 0 0 1 50
18mkedge c3 c3
19wire c3 c3
20mkplane f2 c3 1
21prism p2 f2 0 0 4000
22trotate p2 0 500 0 1 0 0 -77
23trotate p2 0 0 0 0 0 1 180
24
25bclearobjects
26bcleartools
27baddobjects p1
28baddtools p2
29
30bfillds
31
32bbop r_0 0
33bbop r_1 1
34bbop r_2 2
35bbop r_3 3
36bbop r_4 4
37
38for {set i 0} {$i <= 4} {incr i} {
39 checkshape r_$i
40 if {[regexp "Faulties" [ bopargcheck r_$i ]]} {
41 puts "Error: bopargcheck has found some faulties in r_$i"
42 }
43}
44
45
46checknbshapes r_0 -solid 1 -shell 1 -face 5 -wire 6
47checkprops r_0 -s 196255 -v 857818
48
49checknbshapes r_1 -solid 1 -shell 1 -face 9 -wire 13
50checkprops r_1 -s 1.96453e+06 -v 3.49563e+07
51
52checknbshapes r_2 -solid 1 -shell 1 -face 7 -wire 11
53checkprops r_2 -s 742474 -v 3.54041e+06
54
55checknbshapes r_3 -solid 2 -shell 2 -face 7 -wire 8
56checkprops r_3 -s 1.41831e+06 -v 3.05581e+07
57
58checknbshapes r_4 -vertex 8 -edge 8
59checkprops r_4 -l 3965.07
60
61checksection r_4 -r 0
62
63# CUT
64copy r_2 result
65checkmaxtol result -min_tol 1.0e-4
66checkview -display result -2d -path ${imagedir}/${test_image}.png
67