puts "============"
puts "OCC23182"
puts "============"
puts ""
#######################################################################
# During STEP translation isn't checked for validity flag IsClosed
#######################################################################

set BugNumber OCC23182

testreadstep [locate_data_file OCC23182-Layout1.stp] result

set CheckShape_status 0

checkprops result -s 1.24252 
checkshape result

checknbshapes result -vertex 98 -edge 98 -wire 1 -face 1 -shell 1 -solid 0 -compsolid 0 -compound 0 -shape 199
set aClosed [lindex [whatis result] end]
if { ${aClosed} != "Orientable" } {
   set CheckShape_status 1
}

if { ${CheckShape_status} != 0 } {
   puts "Faulty ${BugNumber}"
} else {
   puts "OK ${BugNumber}"
}

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