0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / tests / bugs / moddata_1 / bug152
CommitLineData
b7cd7c2b 1puts "================"
2puts "OCC152"
3puts "SAM1178"
4puts "================"
5puts ""
6#################################################################
7## SAM1178(#1871): Bad escaped result after a cut operation on the shape.
8#################################################################
9
10restore [locate_data_file OCC152.brep] sh
11explode sh
12
13# the shape sh_1 is self-interfered
14# rebuild it
15eval mkvolume a [explode sh_1 f]
16checkshape a
17
18if {![regexp "OK" [bopcheck a]]} {
19 puts "Error: first argument is still self-interfered"
20}
21
22# Note, that one of the edges of the shape sh_2 contains invalid PCurve
23# on one of the faces of the shape sh_1. Try:
24# explode sh_1 f
25# explode sh_2 e
26# v2d
27# pcurve sh_1_3; 2dfit
28# pcurve c2d sh_2_1 sh_1_3
29# c2d is not adjusted.
30#
31# Boolean Operations algorithm will adjust it itself.
32
33copy sh_2 b
34
35
36# perform intersection
37bclearobjects
38bcleartools
39baddobjects a
40baddtools b
41bfillds
42
43# perform all kinds of Boolean operations
44
45# common
46bbop rcom 0
47checkshape rcom
48checkprops rcom -s 57108.7 -v 436179
49checknbshapes rcom -wire 3 -face 3 -shell 2 -solid 2 -m "Common"
50
51
52# fuse
53bbop rfuse 1
54checkshape rfuse
55checkprops rfuse -s 211120 -v 7.18494e+006
56checknbshapes rfuse -wire 4 -face 4 -shell 1 -solid 1 -m "Fuse"
57
58
59# cut
60bbop rcut 2
61checkshape rcut
62checkprops rcut -s 376623 -v 6.74877e+006
63checknbshapes rcut -wire 9 -face 9 -shell 3 -solid 3 -m "Cut"
64
65
66# tuc
67bbop rtuc 3
68checkshape rtuc
69checkprops rtuc -s empty -v empty
70checknbshapes rtuc -wire 0 -face 0 -shell 0 -solid 0 -m "Cut21"
71
72# gf
73bbuild result
74checkshape result
75checkprops result -s 490840 -v 7.62112e+006
76checknbshapes result -wire 10 -face 10 -shell 5 -solid 5 -m "GF"
77
78checkview -display result -2d -path ${imagedir}/${test_image}.png