puts "========================"
puts " OCC441 "
puts "(case 2)"
puts "========================"
puts ""
###############################
## Instability of BRepCheck check status. 
###############################

restore [locate_data_file OCC441b.brep] result

set err [checkshape result r]

set j 1
repeat 25 {
    restore [locate_data_file OCC441b.brep] result
    set err1 [checkshape result r]
    if { $err != $err1 } {
	puts [format " Faulty OCC441: function CHECKSHAPE works wrongly on %s time" $j]
	break
    } else {
	puts [format " OCC441  OK: function CHECKSHAPE works properly %s time" $j]
    }
    incr j
}

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