From 3f9b6e9ea4527ef8d2c09d659089a4971e7de070 Mon Sep 17 00:00:00 2001 From: nbv Date: Tue, 6 Nov 2018 17:22:34 +0300 Subject: [PATCH] 0029205: BRepMesh skips some edges and generates invalid triangulation for the face Adding test case for the problem. The issue has been fixed by a patch for #26106. --- tests/bugs/mesh/bug29205 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/bugs/mesh/bug29205 diff --git a/tests/bugs/mesh/bug29205 b/tests/bugs/mesh/bug29205 new file mode 100644 index 0000000000..74ae63ffd2 --- /dev/null +++ b/tests/bugs/mesh/bug29205 @@ -0,0 +1,24 @@ +puts "==========" +puts "0029205: BRepMesh skips some edges and generates invalid triangulation for the face" +puts "==========" +puts "" + +restore [locate_data_file bug29205_face.brep] result +incmesh result 0.4 + +vinit +vsetdispmode 1 +vdefaults -autoTriang 0 +vdisplay result +vviewparams -scale 67.9853 -proj 0.680425 -0.732509 -0.0212714 -up -0.0316277 -0.0583539 0.997795 -at 10.7708 -10.3962 6.25 -eye 18.2017 -18.3959 6.01769 + +checkview -screenshot -3d -path ${imagedir}/${test_image}.png + +checktrinfo result -tri 8 -nod 10 -defl 6.8481042509220045e-05 + +set log [tricheck result] +if { [llength $log] != 0 } { + puts "Error : Invalid mesh" +} else { + puts "Mesh is OK" +}