puts "============"
puts "OCC24738"
puts "============"
puts ""
#######################################################################
# BRepOffsetAPI_MakePipe algorithm fails on circular path and section (the case where result is part of sphere)
#######################################################################

restore [locate_data_file bug24738_path.brep] sp
restore [locate_data_file bug24738_profile.brep] pr

pipe result sp pr

checknbshapes result -vertex 2 -edge 3 -wire 1 -face 1 -shell 1 -solid 0 -compsolid 0 -compound 0 -shape 8
set info [sprops result]

set string {Center +of +gravity +:[\t\n]*[\s\t]*X +=[\s\t]*([-0-9.+eE]+)[\t\n]*Y +=[\s\t]*([-0-9.+eE]+)[\t\n]*Z +=[\s\t]*([-0-9.+eE]+)[\t\n]*}

regexp ${string} ${info} full X Y Z

puts "X=${X}"
puts "Y=${Y}"
puts "Z=${Z}"

set good_Z 94.9994

checkreal "Z" ${Z} ${good_Z} 0.1 0.1

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