0027371: Regression: BRepExtrema works too much slower in 691 (from 670)
[occt.git] / tests / bugs / fclasses / bug25635_1
CommitLineData
e8746a26 1puts "============"
2puts "OCC25635"
3puts "============"
4puts ""
5######################################################
6# Wrong result of 2D-extrema between two ellipsis
7######################################################
8
9ellipse c1 0 0 2 1
10ellipse c2 4 0 2 1
11
12set info [2dextrema c1 c2]
13
246c7a75 14set tol_abs 7.e-5
e8746a26 15set tol_rel 0.01
16
17#-1
18regexp "dist 1: +(\[-0-9.+eE\]+)" ${info} full dist_1
19
2fe4f8f3 20set expected_dist_1 0.
e8746a26 21checkreal "Distance" ${dist_1} ${expected_dist_1} ${tol_abs} ${tol_rel}
22
23#-2
24set dump_list [dump ext_1]
25
26regexp { *Parameters *: *([-0-9.+eE]+) *([-0-9.+eE]+)} ${dump_list} full Parameter1 Parameter2
27regexp { *Origin *:([-0-9.+eE]+), *([-0-9.+eE]+) } ${dump_list} full OriginX OriginY
28regexp { *Axis *:([-0-9.+eE]+), *([-0-9.+eE]+) } ${dump_list} full AxisX AxisY
29
30set expected_Parameter1 0.
31checkreal "Parameter1" ${Parameter1} ${expected_Parameter1} ${tol_abs} ${tol_rel}
32
2fe4f8f3 33set expected_Parameter2 0.
e8746a26 34checkreal "Parameter2" ${Parameter2} ${expected_Parameter2} ${tol_abs} ${tol_rel}
35
2fe4f8f3 36set expected_OriginX 2.
e8746a26 37checkreal "OriginX" ${OriginX} ${expected_OriginX} ${tol_abs} ${tol_rel}
38
246c7a75 39set expected_OriginY 0.0
e8746a26 40checkreal "OriginY" ${OriginY} ${expected_OriginY} ${tol_abs} ${tol_rel}
41
42set expected_AxisX 1.
43checkreal "AxisX" ${AxisX} ${expected_AxisX} ${tol_abs} ${tol_rel}
44
2fe4f8f3 45set expected_AxisY 0.
e8746a26 46checkreal "AxisY" ${AxisY} ${expected_AxisY} ${tol_abs} ${tol_rel}