puts "========"
puts "0031148: Offset adjacent co-planar faces with different offset values"
puts "========"
puts ""

pload MODELING

setfillhistory 1

polyline p 0 0 0 10 0 0 10 0 1 8 0 1 8 0 4 8 0 7 7 0 7 7 0 4 7 0 1 3 0 1 3 0 4 3 0 7 2 0 7 2 0 4 2 0 1 0 0 1 0 0 0
mkplane f p
prism s f 0 10 0

explode s f
offsetparameter 1.e-7 c i r
offsetload s 0
offsetonface s_7 3
offsetonface s_11 3
offsetperform result

savehistory h

if {[regexp "Not deleted" [isdeleted h s_7]]} {
  puts "Error: History information is wrong"
}

if {[regexp "Not deleted" [isdeleted h s_11]]} {
  puts "Error: History information is wrong"
}

explode s_7 e
generated ge1 h s_7_2
checknbshapes ge1 -face 2 -m "History information"

explode s_11 e
generated ge2 h s_11_1
checknbshapes ge2 -face 2 -m "History information"

compound ge1 ge2 ge
checknbshapes ge -face 3 -m "History information"