1 puts "================"
3 puts "================"
5 #######################################################################
6 # Face/Face intersection algorithm gives different results for different order of the arguments
7 #######################################################################
9 proc GetRange { curve } {
13 set log [uplevel dump $curve]
15 regexp {Degree +([-0-9.+eE]+), +([-0-9.+eE]+) Poles, +([-0-9.+eE]+)} ${log} full Degree Poles KnotsPoles
16 puts "Degree=${Degree}"
18 puts "KnotsPoles=${KnotsPoles}"
22 set exp_string "Knots :\n\n +${Knot} : +(\[-0-9.+eE\]+) +(\[-0-9.+eE\]+)"
23 regexp ${exp_string} ${log} full U1 Mult1
25 set Knot ${KnotsPoles}
26 set exp_string " +${Knot} : +(\[-0-9.+eE\]+) +(\[-0-9.+eE\]+)"
27 regexp ${exp_string} ${log} full U2 Mult2
30 puts "##############################"
31 puts "#!!!Search \"Attention\" keyword on this web-page for additional checking!!!"
32 puts "##############################"
37 #This value must be equal to the analogical value in bug25292_21, bug25292_22, bug25292_25 and bug25292_26 of "bugs modalg_5" testgrid.
40 restore [locate_data_file bug25292_Input_3.brep] b1
41 restore [locate_data_file bug25292_Input_11.brep] b2
56 set ind [string first "3d curve" $che]
58 #Only variable "res" exists
60 if { $GoodNbCurv == 1 } {
61 puts "OK: Curve Number is good!"
63 puts "Error: Curve Number is bad!"
74 if {[expr {$U2 - $U1}] < 1.0e-20} {
75 puts "Error: Wrong curve's range!"
80 xdistcs res s1 ${U1} ${U2} 10
82 set List1 [split ${Log1} {TD= \t\n}]
86 checkList ${List1} ${Tolerance} ${D_good} ${Limit_Tol}
90 xdistcs res s2 ${U1} ${U2} 10
92 set List1 [split ${Log1} {TD= \t\n}]
96 checkList ${List1} ${Tolerance} ${D_good} ${Limit_Tol}
100 while { $AllowRepeate != 0 } {
101 set che [whatis res_$ic]
102 set ind [string first "3d curve" $che]
114 if {[expr {$U2 - $U1}] < 1.0e-20} {
115 puts "Error: Wrong curve's range!"
120 xdistcs res_$ic s1 ${U1} ${U2} 10
122 set List1 [split ${Log1} {TD= \t\n}]
126 checkList ${List1} ${Tolerance} ${D_good} ${Limit_Tol}
130 xdistcs res_$ic s2 0 1 10
132 set List1 [split ${Log1} {TD= \t\n}]
136 checkList ${List1} ${Tolerance} ${D_good} ${Limit_Tol}
142 if {[expr {$ic - 1}] == $GoodNbCurv} {
143 puts "OK: Curve Number is good!"
145 puts "Error: Curve Number is bad!"