puts "TODO OCC26927 ALL: Error: Tolerance is too big!"

puts "========="
puts "CR24915"
puts "========="
puts ""
###############################
## Wrong intersection curves between two cylinders
###############################

puts "##############################"
puts "#!!!Searh \"Attention\" keyword on this web-page for additinal checking!!!"
puts "##############################"

restore [locate_data_file bug24915_ft2.brep] b1
restore [locate_data_file bug24915_ft3.brep] b2

# 1. topology
bclearobjects
bcleartools
baddobjects b1 b2
bfillds
bbuild r
checkshape r

# 2. geometry
set MaxTol 1.0e-7
set log [bopcurves b1 b2 -2d]

if { ! [regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv] } {
  puts "Error: Cannot find tolerance value in output of bopcurve command"
}

if {${Toler} > ${MaxTol}} {
  puts "Error: Tolerance is too big!"
}

smallview
donly b2 c_2
fit
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
