0027531: Modeling Algorithms - Make the algorithm Approx_SameParameter more clear...
[occt.git] / tests / bugs / modalg_5 / bug24496
1 puts "============"
2 puts "OCC24496"
3 puts "============"
4 puts ""
5 #################################
6 # Crash on BRepAlgoAPI_Section
7 #################################
8
9 restore [locate_data_file bug24496_face1.brep] f1
10 restore [locate_data_file bug24496_face2.brep] f2
11
12 bsection result f1 f2
13
14 if { [llength [explode result]] != 2 } {
15   puts "Error: wrong number of intersections. Should be result_1 and result_2"
16 } else {
17   puts "OK: bsection works properly"
18 }
19
20 checkprops result -l 11.7031 
21 checkshape result 
22 checksection result
23 checkview -display result -2d -path ${imagedir}/${test_image}.png