1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-24 13:50:49 +03:00

0024766: Wrong result for distmini between a TopoDS_Shell and a TopoDS_Edge on version 6.6.0.

Test case for issue CR24766
Modified test case bugs/modalg_5/bug24766
This commit is contained in:
ifv
2014-04-10 17:52:25 +04:00
committed by apn
parent d01cc61d44
commit 0e4e12407f
7 changed files with 60 additions and 14 deletions

View File

@@ -0,0 +1,20 @@
puts "============"
puts "OCC24766"
puts "============"
puts ""
#################################################
# Wrong result for distmini between a TopoDS_Shell and a TopoDS_Edge on version 6.6.0.
#################################################
restore [locate_data_file bug24766_shell_for_points.brep] s1
restore [locate_data_file bug24766_edge_to_line.brep] e1
set dist_list [distmini d s1 e1]
regexp {([-0-9.+eE]+)} [dump d_val] full dist
set expected_dist 2.09628394812595e-15
set tol_abs_dist 1.0e-12
set tol_rel_dist 0.001
checkreal "Minimal distantion" ${dist} ${expected_dist} ${tol_abs_dist} ${tol_rel_dist}