1 puts "================"
3 puts "================"
5 #######################################################################
6 # Face/Face intersection algorithm gives different results for different order of the arguments
7 #######################################################################
9 puts "##############################"
10 puts "#!!!Search \"Attention\" keyword on this web-page for additional checking!!!"
11 puts "##############################"
17 restore [locate_data_file bug25292_f1.brep] f1
18 restore [locate_data_file bug25292_f2.brep] f2
20 #############################
21 set log [bopcurves f2 f1 -2d]
22 #############################
24 regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
26 #This value must be equal to the analogical value in bug25292_31 and bug25292_32 of "bugs modalg_5" testgrid.
29 #This value must be equal to the analogical value in bug25292_31 and bug25292_32 of "bugs modalg_5" testgrid.
32 if {${Toler} > ${MaxTol}} {
33 puts "Error: Tolerance is too big!"
35 if {${NbCurv} != ${GoodNbCurv}} {
36 puts "Error: Curve Number is bad!!"
44 for {set i 1} {$i <= ${NbCurv}} {incr i} {
47 regexp {Degree +([-0-9.+eE]+), +([-0-9.+eE]+) Poles, +([-0-9.+eE]+)} ${log} full Degree Poles KnotsPoles
48 puts "Degree=${Degree}"
50 puts "KnotsPoles=${KnotsPoles}"
54 set exp_string "Knots :\n\n +${Knot} : +(\[-0-9.+eE\]+) +(\[-0-9.+eE\]+)"
55 regexp ${exp_string} ${log} full U1 Mult1
57 set Knot ${KnotsPoles}
58 set exp_string " +${Knot} : +(\[-0-9.+eE\]+) +(\[-0-9.+eE\]+)"
59 regexp ${exp_string} ${log} full U2 Mult2
64 if {[expr {$U2 - $U1}] < 1.0e-20} {
65 puts "Error: Wrong curve's range!"
68 xdistcs c_$i s1 ${U1} ${U2} 10 1e-7 1e-8
69 xdistcs c_$i s2 ${U1} ${U2} 10 1e-7 1e-8