From: nbv Date: Wed, 7 Nov 2018 11:19:10 +0000 (+0300) Subject: 0026889: Very poor mesh result from shape X-Git-Tag: V7_4_0_beta~319 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=a385e6d1cd93ff4e645e42d866676f1de3458c64;p=occt-copy.git 0026889: Very poor mesh result from shape Adding test case for the problem. The issue has been fixed by a patch for #26106. --- diff --git a/tests/bugs/mesh/bug26889 b/tests/bugs/mesh/bug26889 deleted file mode 100644 index d033335f42..0000000000 --- a/tests/bugs/mesh/bug26889 +++ /dev/null @@ -1,26 +0,0 @@ -puts "=========" -puts "CR26889" -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 - -vinit -vsetdispmode 1 -vdisplay a_1 -vfit -checkview -screenshot -3d -path ${imagedir}/${test_image}.png 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/perf/mesh/bug26889_2 b/tests/perf/mesh/bug26889_2 new file mode 100644 index 0000000000..658c263eda --- /dev/null +++ b/tests/perf/mesh/bug26889_2 @@ -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.1 1 +dchrono t stop counter incmesh + +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 +checkview -screenshot -3d -path ${imagedir}/${test_image}.png 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