File: bug24766

package info (click to toggle)
oce 0.17.2-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 297,992 kB
  • ctags: 203,291
  • sloc: cpp: 1,176,369; ansic: 67,206; sh: 11,647; tcl: 6,890; cs: 5,221; python: 2,867; java: 1,522; makefile: 338; xml: 292; perl: 37
file content (20 lines) | stat: -rw-r--r-- 628 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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}