3062fdf9 |
1 | puts "============" |
2 | puts "CR25876" |
3 | puts "===========" |
4 | puts "" |
5 | ############################################################################### |
6 | # Geom2dAPI_InterCurveCurve returns only one intersection point instead of two intersection points |
7 | ############################################################################### |
8 | |
9 | restore [locate_data_file bug25876_oc_test_firstcircle.brep] e1 |
10 | restore [locate_data_file bug25876_oc_test_secondcircle.brep] e2 |
11 | |
12 | explode e1 |
13 | explode e2 |
14 | |
15 | mk2dcurve c1 e1_1 |
16 | mk2dcurve c2 e2_1 |
17 | |
18 | set inter1 [2dintersect c1 c2 1e-3] |
19 | set int1 [regexp {Intersection point 2} ${inter1}] |
20 | if { ${int1} == 0 } { |
21 | puts "Error : Second intersection is not found" |
22 | } |
23 | |
24 | #smallview -2D- |
25 | view 1 -2D- 728 450 400 400 |
26 | 2dfit |
27 | xwd ${imagedir}/${test_image}_1.png |
28 | donly c1 c2 |
29 | |
30 | set inter2 [2dintersect c1 c2 1e-7] |
31 | set int2 [regexp {Intersection point 2} ${inter2}] |
32 | if { ${int2} == 0 } { |
33 | puts "Error : Second intersection is not found" |
34 | } |
35 | |
36 | xwd ${imagedir}/${test_image}_2.png |