2 puts "OCC29972: Intersection curve has a weird gap in the middle of it"
6 puts "TODO OCC27243 ALL: Error: The curve res_1 possibly has a bend"
10 foreach a [directory res*] {unset $a}
12 binrestore [locate_data_file bug29972_f1.bin] f1
15 plane s2 -145.136225014162, -136.038366, -73.563687 0 0 1 -1 0 0
19 if { [info exists res] } {
20 #Only variable "res" exists
25 dset aLambda2 [dval 1-aLambda1]
29 while { $AllowRepeat != 0 } {
30 if { ![info exists res_$ic] } {
35 if {[dval U2-U1] < 1.0e-9} {
36 puts "Error: Wrong curve's range!"
39 xdistcs res_$ic s1 U1 U2 100 1.0e-7
40 xdistcs res_$ic s2 U1 U2 100 1.0e-7
42 #check whether the curve has a loop
43 set aFpar [dval U1*aLambda1+aLambda2*U2]
46 set delta [expr ($aLpar-$aFpar)/10.0]
47 cvalue res_$ic $aFpar xp yp zp dx1 dy1 dz1
48 for {set p $aFpar} {$p <= $aLpar} {set p [expr $p + $delta]} {
49 cvalue res_$ic $p xp yp zp dx2 dy2 dz2
51 #Check if the angle between the vectors {dx1 dy1 dz1} and {dx2 dy2 dz2} is less than 40deg.
52 set nv1 [ dval dx1*dx1+dy1*dy1+dz1*dz1 ]
53 set nv2 [ dval dx2*dx2+dy2*dy2+dz2*dz2 ]
55 set nv1 [ expr sqrt($nv1) ]
56 set nv2 [ expr sqrt($nv2) ]
58 set dp [ dval dx1*dx2+dy2*dy2+dz1*dz2 ]
60 if {$dp < [ expr 0.76604444311897803520239265055542 * $nv1 * $nv2 ] } {
61 puts "Error: The curve res_$ic possibly has a bend at parameter $p. Please check carefully"
75 if { $ic != $GoodNbCurves } {
76 puts "Error: $GoodNbCurves are expected but $ic ones are found"
81 point p1 57.478209319525746 -120.6955841545726 -125.98789759526636
82 point p2 57.478010564066473 -120.69677875685414 -125.98860176530741
89 checkview -screenshot -2d -path ${imagedir}/${test_image}.png