puts "============"
puts "OCC24573"
puts "============"
puts ""
#######################################################################
# Wrong result of 2d-offset algorithm on customer's shape
#######################################################################

set BugNumber OCC24573

puts "Load shape ..."
restore [locate_data_file bug24573_Wire.brep] ww

if [catch { mkoffset resoffset ww 1 12.5 } ] {
  puts "Faulty ${BugNumber} : mkoffset is wrong"
} else {
  renamevar resoffset_1 result

  checkprops result -l 178.54 
checkshape result 
checksection result

  checknbshapes result -vertex 10 -edge 10 -wire 1 -face 0 -shell 0 -solid 0 -compsolid 0 -compound 0 -shape 21
}

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