0029807: [Regression to 7.0.0] Impossible to cut cone from prism
[occt.git] / tests / bugs / modalg_7 / bug29807_i4005
CommitLineData
3306fdd9 1puts "========"
2puts "0029807: Impossible to cut cone from prism"
3puts "========"
4puts ""
5
6restore [locate_data_file bug29807-obj.brep] b1
7restore [locate_data_file bug29807-cone.brep] f2
8
9trotate f2 +23.85857157145715500000 +12.00000000000000000000 +5.50000000000000000000 7 -7.14142842854285 0 5
10trotate f2 +23.85857157145715500000 +12.00000000000000000000 +5.50000000000000000000 7.1414284285428495 7.0000000000000009 -0 -38
11ttranslate f2 0 0 2
12
13explode b1 f
14nurbsconvert f1 b1_5
15smallview
16don f1 f2
17fit
18
19regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} [bopcurves f1 f2 -2d] full Toler NbCurv
20
21checkreal Tolerance $Toler 6.4774618953705733e-006 0.0 0.01
22
23if {$NbCurv != 2} {
24 puts "Error: Please check NbCurves for intersector"
25}
26
27checkview -screenshot -2d -path ${imagedir}/${test_image}_3d.png
28smallview -2D-
292dfit
30checkview -screenshot -2d -path ${imagedir}/${test_image}_2d.png