restore [locate_data_file bug28501_input.r2.brep] s

offsetparameter 1e-7 c i r
offsetload s 0

foreach f [explode s f] {
  mksurface surf $f
  set found [regexp {Axis   :([-0-9.+eE]*), ([-0-9.+eE]*), ([-0-9.+eE]*)} [dump surf] full x y z]
  if {$found  && abs($z + 1) > 1.e-7} {
    offsetonface $f 5
  }
}
offsetperform result

checkprops result -v 1.80714e+007 -s 1.36185e+006

unifysamedom result_unif result
checknbshapes result_unif -face 356 -shell 1

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