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 ellipse c1 0 0 0 0 0 1 6.03031367203927 3.11993062568844
18 cylinder s2 0 0 0 1 0 0 0.249128788767645
20 intersect result s1 s2
22 set che [whatis result]
23 set ind [string first "3d curve" $che]
25 #Only variable "result" exists
26 renamevar result result_1
31 while { $AllowRepeate != 0 } {
32 set che [whatis result_$ic]
33 set ind [string first "3d curve" $che]
39 bounds result_$ic U1 U2
43 if {[dval U2-U1] < 1.0e-9} {
44 puts "Error: Wrong curve's range!"
47 xdistcs result_$ic s1 U1 U2 10 4.0e-5
48 xdistcs result_$ic s2 U1 U2 10 1.0e-5
50 for { set ip [expr $ic-1] } { $ip > 0 } { incr ip -1 } {
54 set coe [checkoverlapedges e1 e2 5.0e-5]
56 puts "result_$ic <-> result_$ip: $coe"
57 if { [regexp "Edges is not overlaped" $coe] != 1 } {
58 puts "Error: result_$ic and result_$ip are overlaped"
66 if {[expr {$ic - 1}] == $GoodNbCurv} {
67 puts "OK: Number of curves is good!"
69 puts "Error: $GoodNbCurv is expected but [expr {$ic - 1}] is found!"
77 checkview -screenshot -2d -path ${imagedir}/${test_image}.png