puts "========"
puts "OCC27390"
puts "========"
puts ""
###########################################################################
#  Box and Ellipsoid shape boolean cut and common introduce invalid result.
###########################################################################

restore [locate_data_file bug27390_Box_Ellipsoid.brep] c

explode c

bcut result c_1 c_2

checkshape result

checkprops result -s 34566

set nbshapes_expected "
Number of shapes in shape
 VERTEX    : 13
 EDGE      : 21
 WIRE      : 8
 FACE      : 8
 SHELL     : 1
 SOLID     : 1
 COMPSOLID : 0
 COMPOUND  : 1
 SHAPE     : 53
"
checknbshapes result -ref ${nbshapes_expected} -t -m "Boolean operations cut"

checkview -display result -3d -path ${imagedir}/${test_image}-3d.png
checkview -display result -2d -path ${imagedir}/${test_image}-2d.png
