5 ###########################################################
6 # Wrong pcurve of the section curve
7 ###########################################################
10 set GoodLength 0.9119608849931374
12 restore [locate_data_file bug27252_s671.draw] s1
13 restore [locate_data_file bug27252_s672.draw] s2
17 foreach Toler { 1.0e-7 1.0e-4 } {
20 intersect result s1 s2 ${Toler}
22 set che [whatis result]
23 set ind [string first "3d curve" $che]
25 #Only variable "result" exists
26 renamevar result result_1
33 while { $AllowRepeate != 0 } {
34 set che [whatis result_$ic]
35 set ind [string first "3d curve" $che]
41 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 1.0e-7
48 xdistcs result_$ic s2 U1 U2 10 1.0e-7
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"
62 regexp "The length result_$ic is +(\[-0-9.+eE\]+)" [length result_$ic] full ll
63 set clen [expr $clen+$ll]
69 if {[expr {$ic - 1}] == $GoodNbCurv} {
70 puts "OK: Number of curves is good!"
72 puts "Error: $GoodNbCurv is expected but [expr {$ic - 1}] is found!"
75 puts "Summary length = $clen"
76 checkreal SumLength $clen $GoodLength 0.0 1.0e-6
83 checkview -screenshot -2d -path ${imagedir}/${test_image}_${CheckID}.png