1 puts "================"
3 puts "================"
5 #######################################################################
6 # 0027937: Intersector loops infinitely while proceeding two simple surfaces
7 #######################################################################
12 # The test on performance meter.
13 # See issue #27937 for detail.
16 restore [locate_data_file bug27937_int1.draw] s1
17 restore [locate_data_file bug27937_int2.draw] s2
19 intersect result s1 s2
21 set che [whatis result]
22 set ind [string first "3d curve" $che]
24 #Only variable "result" exists
25 renamevar result result_1
30 while { $AllowRepeate != 0 } {
31 set che [whatis result_$ic]
32 set ind [string first "3d curve" $che]
38 bounds result_$ic U1 U2
42 if {[dval U2-U1] < 1.0e-9} {
43 puts "Error: Wrong curve's range!"
46 xdistcs result_$ic s1 U1 U2 10 3.0e-5
47 xdistcs result_$ic s2 U1 U2 10 1.0e-5
49 for { set ip [expr $ic-1] } { $ip > 0 } { incr ip -1 } {
53 set coe [checkoverlapedges e1 e2 5.0e-5]
55 puts "result_$ic <-> result_$ip: $coe"
56 if { [regexp "Edges is not overlaped" $coe] != 1 } {
57 puts "Error: result_$ic and result_$ip are overlaped"
65 if {[expr {$ic - 1}] == $GoodNbCurv} {
66 puts "OK: Number of curves is good!"
68 puts "Error: $GoodNbCurv is expected but [expr {$ic - 1}] is found!"
76 checkview -screenshot -2d -path ${imagedir}/${test_image}.png