0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / tests / bugs / modalg_7 / bug31850_2
1 puts "======================================================="
2 puts "0031850: Modeling Algorithms - boolean cut and common generate unexpected result"
3 puts "======================================================="
4 puts ""
5
6 restore [locate_data_file bug31850.brep] s
7 explode s
8
9 bfuzzyvalue 1.e-6
10 bnondestructive 1
11 brunparallel 1
12 setfillhistory 0
13
14 bclearobjects
15 bcleartools
16 baddobjects s_1
17 baddtools s_2
18 bfillds
19
20 bbop r0 0
21 bbop r1 1
22 bbop r2 2
23 bbop r3 3
24 bbop r4 4
25 bbuild rgf
26
27 boptions -default
28
29 foreach r {r0 r1 r2 r3 r4 rgf} {
30   checkshape $r
31   if {![regexp "OK" [bopcheck $r]]} {
32     puts "Error: the $r is a self-interfering shape"
33   }
34 }
35
36 checknbshapes r0 -wire 28 -face 28 -shell 1 -solid 1 -t
37 checkprops r0 -s 1107.94 -v 472.151
38
39 checknbshapes r1 -wire 50 -face 45 -shell 1 -solid 1 -t
40 checkprops r1 -s 14959.7 -v 37939.8
41
42 checknbshapes r2 -wire 33 -face 28 -shell 1 -solid 1 -t
43 checkprops r2 -s 5244.61 -v 2516.56
44
45 checknbshapes r3 -wire 45 -face 45 -shell 1 -solid 1 -t
46 checkprops r3 -s 10823 -v 34951.1
47
48 checkprops r4 -l 203.491
49 checksection r4 -r 10
50
51 checknbshapes rgf -wire 78 -face 73 -shell 3 -solid 3 -t
52 checkprops rgf -s 17175.6 -v 37939.8
53
54 checkview -display r0 -2d -path ${imagedir}/${test_image}.png