0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / tests / bugs / modalg_7 / bug29293_2
CommitLineData
93964cc2 1puts "========"
2puts "OCC29293"
3puts "========"
4puts ""
5#################################################
6# Boolean Operations algorithm does not preserve the orientations of the faces
7#################################################
8
9brestore [locate_data_file bug29293_etchable_face_compound.brep] a
10brestore [locate_data_file bug29293_top_shell.brep] b
11
12explode a f
13explode b f
14
15shape bsh Sh
16add b_25 bsh
17
18bclearobjects
19bcleartools
20baddobjects a_7
21baddtools bsh
22bfillds
23bbop result 0
24
25checkshape result
26checkprops result -s 13460
27checknbshapes result -vertex 4 -edge 4 -wire 1 -face 1 -shell 1
28
29
30smallview
31don result
32fit
33
34# Check that the normal directions have been preserved.
35# Both input faces faces have normals
7b5e532f 36# directed strictly to the top (0, 0, 1). So, it is necessary to check
93964cc2 37# that the reuslting face has the same normal direction.
38
39if {![regexp "(0, 0, 100)" [normals result -length 100 -print]]} {
40 puts "Error: the orientation is changed"
41}
42
43checkview -screenshot -2d -path ${imagedir}/${test_image}_1.png