restore [locate_data_file bug29188_xb4_trim.brep] s

offsetparameter 1.e-7 c i r
offsetload s 10
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(abs($z) - 1) < 1.e-7} {
    offsetonface $f 0
  }
}
offsetperform result

checkprops result -s 83647.4 -v 1.00827e+006

unifysamedom result_unif result
checknbshapes result_unif -vertex 31 -edge 47 -wire 18 -face 18 -shell 1

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