0027045: firsthole & holend commands work incorrectly
[occt.git] / tests / bugs / modalg_6 / bug26674
CommitLineData
836d7b64 1puts "========"
2puts "OCC26674"
3puts "========"
4puts ""
5#################################################
6# Performance regression in BRepExtrema_DistShapeShape in OCCT 6.9.0 in compare with OCCT 6.7.1
7#################################################
8
9set max_time 1
10
11restore [locate_data_file OCC26674-face.brep] a1
12restore [locate_data_file OCC26674-shell.brep] a2
13
14dchrono cr reset
15dchrono cr start
16
17distmini dd a1 a2
18
19dchrono cr stop
20
21set log [dchrono cr show]
22
23regexp {CPU user time: ([-0-9.+eE]+) seconds} $log full z
24puts "$z"
25
26if { $z > ${max_time} } {
27 puts "Elapsed time of BRepExtrema_DistShapeShape is more than ${max_time} seconds - Error"
28} else {
29 puts "Elapsed time of BRepExtrema_DistShapeShape is less than ${max_time} seconds - OK"
30}
31
32regexp {([-0-9.+eE]+)$} [dump dd_val] full dist
33
34set expected_dist 0.0
35set tol_abs_dist 1.0e-07
36set tol_rel_dist 0.0
37checkreal "Dump of dd_val" ${dist} ${expected_dist} ${tol_abs_dist} ${tol_rel_dist}