5 ##############################################
6 # Extrema_ExtCC gives not precise solution
7 ##############################################
9 restore [locate_data_file bug26022_splitnoproblem671_notria.brep] a
19 cvalue c1 prm_1_1 x1 y1 z1
23 regexp {is ([\d.\-e]+)} [length ext_1] str dist
24 set dist_to_end [dval sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)+(z1-z2)*(z1-z2))]
25 set parametric_dist_to_end [dval u2-prm_1_1]
27 puts "dist of solution $dist"
28 puts "parametric dist to end of curve $parametric_dist_to_end"
29 puts "dist to end of curve $dist_to_end"
35 set expected_parametric_dist_to_end 0.0
36 set expected_dist_to_end 0.0
38 checkreal "dist of solution" ${dist} ${expected_dist} ${tol_abs} ${tol_rel}
39 checkreal "parametric dist to end of curve" ${parametric_dist_to_end} ${expected_parametric_dist_to_end} ${tol_abs} ${tol_rel}
40 checkreal "dist to end of curve" ${dist_to_end} ${expected_dist_to_end} ${tol_abs} ${tol_rel}