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