puts "============"
puts "OCC5805"
puts "============"
puts ""
######################################################
# BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results.
######################################################

set BugNumber OCC5805

restore [locate_data_file OCC5805.brep] a 

checkshape a

explode a f

offsetparameter 1e-7 c a
offsetload a -1

if { [catch { offsetperform result } catch_result] } {
   puts "Faulty ${BugNumber} : offsetshape is wrong"
}

checkmaxtol result -min_tol 1.

checkprops result -s 876.584 
checkshape result

checknbshapes result -vertex 10 -edge 15 -wire 7 -face 7 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 41
checkview -display result -2d -path ${imagedir}/${test_image}.png
