]> OCCT Git - occt.git/commitdiff
0029685: Meshing - BRepMesh does not respect requested deflection
authornbv <nbv@opencascade.com>
Tue, 6 Nov 2018 14:03:31 +0000 (17:03 +0300)
committerbugmaster <bugmaster@opencascade.com>
Sun, 11 Nov 2018 08:34:29 +0000 (11:34 +0300)
Adding test case for the problem.
The issue has been fixed by a patch for #26106.

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

diff --git a/tests/bugs/mesh/bug29685 b/tests/bugs/mesh/bug29685
new file mode 100644 (file)
index 0000000..a4b37b5
--- /dev/null
@@ -0,0 +1,21 @@
+puts "======="
+puts "0029685: Meshing - BRepMesh does not respect requested deflection"
+puts "======="
+puts ""
+
+restore [locate_data_file bug29685_shape_to_render.brep] result
+vinit
+vsetdispmode 1
+vdisplay result
+vviewparams -scale 17.5502 -proj 0.57735 -0.57735 0.57735 -up -0.408248 0.408248 0.816497 -at 5.1597 115.661 188.336 -eye 43.2805 77.5402 226.457
+
+set log [tricheck result]
+if { [llength $log] != 0 } {
+  puts "Error : Invalid mesh"
+} else {
+  puts "Mesh is OK"
+}
+
+checktrinfo result -tri 148 -nod 103 -defl 0.27179801813852145
+
+checkview -screenshot -3d -path ${imagedir}/${test_image}.png