From a385e6d1cd93ff4e645e42d866676f1de3458c64 Mon Sep 17 00:00:00 2001 From: nbv Date: Wed, 7 Nov 2018 14:19:10 +0300 Subject: [PATCH] 0026889: Very poor mesh result from shape Adding test case for the problem. The issue has been fixed by a patch for #26106. --- tests/perf/mesh/bug26889_1 | 29 +++++++++++++++++++ .../mesh/bug26889 => perf/mesh/bug26889_2} | 19 +++++++----- tests/perf/mesh/bug26889_3 | 29 +++++++++++++++++++ 3 files changed, 69 insertions(+), 8 deletions(-) create mode 100644 tests/perf/mesh/bug26889_1 rename tests/{bugs/mesh/bug26889 => perf/mesh/bug26889_2} (52%) create mode 100644 tests/perf/mesh/bug26889_3 diff --git a/tests/perf/mesh/bug26889_1 b/tests/perf/mesh/bug26889_1 new file mode 100644 index 0000000000..4413cc1d50 --- /dev/null +++ b/tests/perf/mesh/bug26889_1 @@ -0,0 +1,29 @@ +puts "=========" +puts "0026889: Very poor mesh result from shape" +puts "=========" +puts "" + +pload XDE + +stepread [locate_data_file bug26889_export.step] a * + +dchrono t restart +incmesh a_1 0.01 1 +dchrono t stop counter incmesh + +checktrinfo a_1 -tri 743149 -nod 372395 -defl 0.081028355715069861 + +set log [tricheck a_1] +if { [llength $log] != 0 } { + puts "Error : Invalid mesh" +} else { + puts "Mesh is OK" +} + + +vinit +vdefaults -autoTriang 0 +vsetdispmode 1 +vdisplay a_1 +vfit +checkview -screenshot -3d -path ${imagedir}/${test_image}.png diff --git a/tests/bugs/mesh/bug26889 b/tests/perf/mesh/bug26889_2 similarity index 52% rename from tests/bugs/mesh/bug26889 rename to tests/perf/mesh/bug26889_2 index d033335f42..658c263eda 100644 --- a/tests/bugs/mesh/bug26889 +++ b/tests/perf/mesh/bug26889_2 @@ -1,25 +1,28 @@ puts "=========" -puts "CR26889" +puts "0026889: Very poor mesh result from shape" puts "=========" puts "" -############################################### -# Very poor mesh result from shape -############################################### pload XDE stepread [locate_data_file bug26889_export.step] a * -dlog reset -dlog on - dchrono t restart incmesh a_1 0.1 1 dchrono t stop counter incmesh -checktrinfo a_1 -tri -nod +checktrinfo a_1 -tri 182273 -nod 91484 -defl 0.11671770612283024 + +set log [tricheck a_1] +if { [llength $log] != 0 } { + puts "Error : Invalid mesh" +} else { + puts "Mesh is OK" +} + vinit +vdefaults -autoTriang 0 vsetdispmode 1 vdisplay a_1 vfit diff --git a/tests/perf/mesh/bug26889_3 b/tests/perf/mesh/bug26889_3 new file mode 100644 index 0000000000..7810bcc210 --- /dev/null +++ b/tests/perf/mesh/bug26889_3 @@ -0,0 +1,29 @@ +puts "=========" +puts "0026889: Very poor mesh result from shape" +puts "=========" +puts "" + +pload XDE + +stepread [locate_data_file bug26889_export.step] a * + +dchrono t restart +incmesh a_1 1.0 1 +dchrono t stop counter incmesh + +checktrinfo a_1 -tri 73119 -nod 36828 -defl 1.0 + +set log [tricheck a_1] +if { [llength $log] != 0 } { + puts "Error : Invalid mesh" +} else { + puts "Mesh is OK" +} + + +vinit +vdefaults -autoTriang 0 +vsetdispmode 1 +vdisplay a_1 +vfit +checkview -screenshot -3d -path ${imagedir}/${test_image}.png