0026889: Very poor mesh result from shape
authornbv <nbv@opencascade.com>
Wed, 7 Nov 2018 11:19:10 +0000 (14:19 +0300)
committerbugmaster <bugmaster@opencascade.com>
Sun, 11 Nov 2018 08:34:25 +0000 (11:34 +0300)
Adding test case for the problem.
The issue has been fixed by a patch for #26106.

tests/bugs/mesh/bug26889 [deleted file]
tests/perf/mesh/bug26889_1 [new file with mode: 0644]
tests/perf/mesh/bug26889_2 [new file with mode: 0644]
tests/perf/mesh/bug26889_3 [new file with mode: 0644]

diff --git a/tests/bugs/mesh/bug26889 b/tests/bugs/mesh/bug26889
deleted file mode 100644 (file)
index d033335..0000000
+++ /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 (file)
index 0000000..4413cc1
--- /dev/null
@@ -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 (file)
index 0000000..658c263
--- /dev/null
@@ -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 (file)
index 0000000..7810bcc
--- /dev/null
@@ -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