0031047: Modeling Algorithms - BRepExtrema_DistShapeShape gives wrong result
[occt.git] / tests / bugs / modalg_6 / bug27665
1 puts "========"
2 puts "OCC27665"
3 puts "========"
4 puts ""
5 #################################################
6 # BrepExrtrema_DistShapeShape bad performance on OCCT 6.7.0
7 #################################################
8 cpulimit 100
9 restore [locate_data_file bug27665_wircmpd.brep] w
10 explode w
11
12 dset d1_val 1000
13 dset d2_val 1000
14
15 distmini d1 w_1 w_2
16 distmini d2 w_2 w_1
17
18 if {[dval d1_val] > 1.0e-7} {
19   puts "1st case: Wrong result of distmini command - Error"
20 } else {
21   puts "1st case: distmini command works properly - OK"
22 }
23
24 if {[dval d2_val] > 1.0e-7} {
25   puts "2nd case: Wrong result of distmini command - Error"
26 } else {
27   puts "2nd case: distmini command works properly - OK"
28 }