From f3573fb54b3c6bec23007ac2fe824c89f0466299 Mon Sep 17 00:00:00 2001 From: oan Date: Thu, 1 Sep 2022 13:49:19 +0300 Subject: [PATCH] 0031449: Mesh - BRepMesh works too long and produces many free nodes on a valid face Added test cases --- tests/bugs/mesh/bug31449_1 | 20 ++++++++++++++++++++ tests/bugs/mesh/bug31449_2 | 17 +++++++++++++++++ tests/bugs/mesh/bug31449_3 | 19 +++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 tests/bugs/mesh/bug31449_1 create mode 100644 tests/bugs/mesh/bug31449_2 create mode 100644 tests/bugs/mesh/bug31449_3 diff --git a/tests/bugs/mesh/bug31449_1 b/tests/bugs/mesh/bug31449_1 new file mode 100644 index 0000000000..f117e4a33c --- /dev/null +++ b/tests/bugs/mesh/bug31449_1 @@ -0,0 +1,20 @@ +puts "================" +puts "0031449: Mesh - BRepMesh works too long and produces many free nodes on a valid face" +puts "================" +puts "" + +pload XDE + +set aTmpFile ${imagedir}/${casename}.stp +ReadStep D [locate_data_file bug31301.stp] +WriteStep D ${aTmpFile} +param xstep.cascade.unit M +ReadStep Q ${aTmpFile} +XShow Q +vfit +vsetdispmode 1 + +XGetOneShape result Q +checktrinfo result -tri 9025 -nod 6562 + +checkview -screenshot -3d -path ${imagedir}/${test_image}.png diff --git a/tests/bugs/mesh/bug31449_2 b/tests/bugs/mesh/bug31449_2 new file mode 100644 index 0000000000..50d626d3ff --- /dev/null +++ b/tests/bugs/mesh/bug31449_2 @@ -0,0 +1,17 @@ +puts "================" +puts "0031449: Mesh - BRepMesh works too long and produces many free nodes on a valid face" +puts "================" +puts "" + +restore [locate_data_file bug31449_face_loopback_M.brep] result + +incmesh result 0.0001 + +set info_good [tricheck result] +if { [string compare $info_good "" ] != 0 } { + puts "Error : something wierd has been produced, like free nodes, or links" +} + +checktrinfo result -tri 65 -nod 67 + +checkview -display result -3d -path ${imagedir}/${test_image}.png diff --git a/tests/bugs/mesh/bug31449_3 b/tests/bugs/mesh/bug31449_3 new file mode 100644 index 0000000000..f77c0646c0 --- /dev/null +++ b/tests/bugs/mesh/bug31449_3 @@ -0,0 +1,19 @@ +puts "================" +puts "0031449: Mesh - BRepMesh works too long and produces many free nodes on a valid face" +puts "================" +puts "" + +pload XDE + +set aTmpFile ${imagedir}/${casename}.stp +ReadStep D [locate_data_file bug31301.stp] +WriteStep D ${aTmpFile} +param xstep.cascade.unit M +ReadStep Q ${aTmpFile} +XGetOneShape result Q + +incmesh result 0.00039624 -a 20 -min 0.0001 -parallel + +checktrinfo result -tri 7661 -nod 5810 + +checkview -display result -3d -path ${imagedir}/${test_image}.png