puts "============"
puts "OCC22725"
puts "============"
puts ""
#######################################################################
# BRepOffsetAPI_ThruSections algorithm produces twisted surface on some wires
#######################################################################

set BugNumber OCC22725

restore [locate_data_file OCC22725-ruled_arc9.brep] a 
restore [locate_data_file OCC22725-ruled_bsc9.brep] b 

wire w1 a
wire w2 b

set issolid 0
set isruled 1

if { [catch { thrusections result ${issolid} ${isruled} w1 w2 } catch_result] } {
   puts "Faulty ${BugNumber} : thrusections is wrong"
}

set square 11010.6

set nb_v_good 2
set nb_e_good 3
set nb_w_good 1
set nb_f_good 1
set nb_sh_good 1
set nb_sol_good 0
set nb_compsol_good 0
set nb_compound_good 0
set nb_shape_good 8

set 3dviewer 1
