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