0024108: Boolean fuse fails
[occt.git] / tests / bugs / moddata_3 / bug24108_2
1 puts "============"
2 puts "CR24108"
3 puts "============"
4 puts ""
5 #######################################################################
6 # Boolean fuse fails
7 # -- test #2: in rotated co-ordinates --
8 #######################################################################
9
10 puts "Load first shape ..."
11 restore [locate_data_file bug24108_face_411.brep] b1 
12 puts "Load second shape ..."
13 restore [locate_data_file bug24108_face_514.brep] b2 
14
15 puts "Rotate shapes by 45 deg around Z .."
16 trotate b1 0 0 0 0 0 1 45.
17 trotate b2 0 0 0 0 0 1 45.
18
19 explode b1 f
20 explode b2 f
21
22 copy b1_1 b1
23 copy b2_1 b2
24
25 puts "Prepare boolean operation ..."
26 bop b1 b2
27
28 puts "Start boolean operation ..."
29 bopfuse result
30 puts "Finish boolean operation ..."
31
32 set square 1328.78
33
34 # Analysis of "nbshapes result"
35 set nb_v_good 37
36 set nb_e_good 39
37 set nb_w_good 4
38 set nb_f_good 3
39 set nb_sh_good 1
40 set nb_sol_good 0
41 set nb_compsol_good 0
42 set nb_compound_good 1
43 set nb_shape_good 85
44
45 set 3dviewer 1