puts "================"
puts "OCC12661"
puts "================"
puts ""
#######################################################################################
# Wrong calculation of bnd box for edge if edge has polygon of triangulation
#######################################################################################

set BugNumber OCC12661

restore [locate_data_file OCC12661.brep] result
set res [bounding result]

set x1 [lindex ${res} 0]
set y1 [lindex ${res} 1]
set z1 [lindex ${res} 2]
set x2 [lindex ${res} 3]
set y2 [lindex ${res} 4]
set z2 [lindex ${res} 5]

checkreal "x1" ${x1} -6.3659273065258741 0 0.001
checkreal "y1" ${y1} 0.7051405053395956  0 0.001
checkreal "z1" ${z1} -2.5792617865186296 0 0.001
checkreal "x2" ${x2} 6.3659273065258795  0 0.001
checkreal "y2" ${y2} 7.6599592236605769  0 0.001
checkreal "z2" ${z2} 3.0815250146676485  0 0.001

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

