]> OCCT Git - occt.git/commitdiff
0031449: Mesh - BRepMesh works too long and produces many free nodes on a valid face
authoroan <oan@opencascade.com>
Thu, 1 Sep 2022 10:49:19 +0000 (13:49 +0300)
committersmoskvin <smoskvin@opencascade.com>
Tue, 13 Sep 2022 20:30:33 +0000 (23:30 +0300)
Added test cases

tests/bugs/mesh/bug31449_1 [new file with mode: 0644]
tests/bugs/mesh/bug31449_2 [new file with mode: 0644]
tests/bugs/mesh/bug31449_3 [new file with mode: 0644]

diff --git a/tests/bugs/mesh/bug31449_1 b/tests/bugs/mesh/bug31449_1
new file mode 100644 (file)
index 0000000..f117e4a
--- /dev/null
@@ -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 (file)
index 0000000..50d626d
--- /dev/null
@@ -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 (file)
index 0000000..f77c064
--- /dev/null
@@ -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