1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-06-20 11:54:07 +03:00
occt/tests/bugs/moddata_3/bug24108_2

37 lines
900 B
Plaintext

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"
checknbshapes result -vertex 37 -edge 39 -wire 4 -face 3 -shell 0 -solid 0 -compsolid 0 -compound 1 -shape 84
set 3dviewer 1