fa0291ff |
1 | puts "============" |
2 | puts "OCC23576" |
3 | puts "============" |
4 | puts "" |
5 | ####################################################################### |
6 | # Intersection algorithm produces trimmed circle with illegal parametric range. |
7 | ####################################################################### |
8 | |
9 | restore [locate_data_file bug23576_ff_b1_4_z564.brep] b1 |
10 | |
11 | explode b1 |
12 | bopcurves b1_1 b1_2 |
13 | copy c_1 result |
14 | |
15 | set log [dump result] |
16 | |
17 | regexp {Parameters : +([-0-9.+eE]+) +([-0-9.+eE]+)} ${log} full rc1 rc2 |
18 | puts "rc1=${rc1}" |
19 | puts "rc2=${rc2}" |
20 | set 2_PI [expr 2. * 2. * asin(1.0)] |
21 | puts "2_PI=${2_PI}" |
22 | puts "" |
23 | |
24 | if {${rc1} < 0.} { |
25 | puts "Error: Bad value of parametric range rc1" |
26 | } else { |
27 | puts "Good value of parametric range rc1" |
28 | } |
729d84d4 |
29 | if {${rc2} < ${2_PI}} { |
fa0291ff |
30 | puts "Error: Bad value of parametric range rc2" |
31 | } else { |
32 | puts "Good value of parametric range rc2" |
33 | } |