cc3136e67c0785c29f8d176fe613c701a3b5cd43
[occt.git] / tests / bugs / modalg_7 / bug29807_i1001
1 puts "========"
2 puts "0029807: Impossible to cut cone from prism"
3 puts "========"
4 puts ""
5
6 restore [locate_data_file bug29807-obj.brep] b1
7 restore [locate_data_file bug29807-tool.brep] b2
8
9 explode b1 f
10 explode b2 f
11 smallview
12 don b1_5 b2_2
13 fit
14
15 regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} [bopcurves b1_5 b2_2 -2d] full Toler NbCurv
16
17 checkreal Tolerance $Toler 0.00015253053837904724 0.0 0.01
18
19 if {$NbCurv != 2} {
20   puts "Error: Please check NbCurves for intersector"
21 }
22
23 checkview -screenshot -2d -path ${imagedir}/${test_image}_3d.png
24 smallview -2D-
25 2dfit
26 checkview -screenshot -2d -path ${imagedir}/${test_image}_2d.png