From: nbv Date: Fri, 22 Jul 2016 08:33:47 +0000 (+0300) Subject: 0027665: BrepExrtrema_DistShapeShape bad performance on OCCT 6.7.0 X-Git-Tag: V7_1_0_beta~218 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=bb526112b1566e198cad1f1bb902deb05638fc36;p=occt-copy.git 0027665: BrepExrtrema_DistShapeShape bad performance on OCCT 6.7.0 Creation of test case for issue #27665. --- diff --git a/tests/bugs/modalg_6/bug27665 b/tests/bugs/modalg_6/bug27665 new file mode 100644 index 0000000000..85fe8294f2 --- /dev/null +++ b/tests/bugs/modalg_6/bug27665 @@ -0,0 +1,28 @@ +puts "========" +puts "OCC27665" +puts "========" +puts "" +################################################# +# BrepExrtrema_DistShapeShape bad performance on OCCT 6.7.0 +################################################# +cpulimit 100 +restore [locate_data_file bug27665_wircmpd.brep] w +explode w + +dset d1_val 1000 +dset d2_val 1000 + +distmini d1 w_1 w_2 +distmini d2 w_2 w_1 + +if {[dval d1_val] > 1.0e-7} { + puts "1st case: Wrong result of distmini command - Error" +} else { + puts "1st case: distmini command works properly - OK" +} + +if {[dval d2_val] > 1.0e-7} { + puts "2nd case: Wrong result of distmini command - Error" +} else { + puts "2nd case: distmini command works properly - OK" +}