5 ######################################################
6 # The result of intersection between two cylinders is incorrect
7 # Algorithm must find one curves only
8 ######################################################
12 restore [locate_data_file bug25782_fz19.brep] b1
13 restore [locate_data_file bug25782_fz53.brep] b2
21 set ind [string first "3d curve" $che]
23 #Only variable "res" exists
30 while { $AllowRepeate != 0 } {
31 set che [whatis res_$ic]
32 set ind [string first "3d curve" $che]
36 xdistcs res_$ic s1 0 100 10 1e-7
37 xdistcs res_$ic s2 0 100 10 1e-7
43 if {[expr {$ic - 1}] == $GoodNbCurv} {
44 puts "OK: Curve Number is good!"
46 puts "Error: Curves Number is bad!"
49 set log [bopcurves b1 b2]
51 regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
53 if {${Toler} > ${MaxTol}} {
54 puts "Error: Tolerance is too big!"
57 if {$NbCurv != $GoodNbCurv} {
58 puts "Error: Curves Number is bad!"
61 for {set i 1} {$i <= ${NbCurv}} {incr i} {
64 if {[dval U2-U1] < 1.0e-9} {
65 puts "Error: Wrong curve's range!"
68 xdistcs c_$i s1 U1 U2 10 1e-7
69 xdistcs c_$i s2 U1 U2 10 1e-7