File: bug24766

package info (click to toggle)
oce 0.18.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 301,548 kB
  • sloc: cpp: 1,190,609; ansic: 67,225; sh: 11,630; tcl: 7,954; cs: 5,221; python: 2,867; java: 1,522; makefile: 342; 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}