]> OCCT Git - occt-copy.git/commitdiff
0027845: BRepMesh produces invalid result on spline cavity
authornbv <nbv@opencascade.com>
Thu, 8 Nov 2018 07:39:21 +0000 (10:39 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 9 Nov 2018 14:32:40 +0000 (17:32 +0300)
Adding test case for the problem.
The issue has been fixed by a patch for #26106.

tests/bugs/mesh/bug27845 [new file with mode: 0644]

diff --git a/tests/bugs/mesh/bug27845 b/tests/bugs/mesh/bug27845
new file mode 100644 (file)
index 0000000..d10d88b
--- /dev/null
@@ -0,0 +1,24 @@
+puts "=========="
+puts "0027845: BRepMesh produces invalid result on spline cavity"
+puts "=========="
+puts ""
+
+restore [locate_data_file bug27845_shape.brep] result
+tclean result
+incmesh result 10 -a 180
+
+vinit
+vsetdispmode 1
+vdefaults -autoTriang 0
+vdisplay result
+vfit 
+checkview -screenshot -3d -path ${imagedir}/${test_image}.png
+
+checktrinfo result -tri 3006 -nod 4360 -defl 10
+
+set log [tricheck result]
+if { [llength $log] != 0 } {
+  puts "Error : Invalid mesh"
+} else {
+  puts "Mesh is OK"
+}