diff --git a/tests/bugs/mesh/bug25307 b/tests/bugs/mesh/bug25307 new file mode 100644 index 0000000000..9a4abed59b --- /dev/null +++ b/tests/bugs/mesh/bug25307 @@ -0,0 +1,49 @@ +puts "==========" +puts "OCC25307" +puts "==========" +puts "" +################################################################## +# Problems resulted from re-triangulation +################################################################## + +restore [locate_data_file OCC22095-selectNoTbb.brep] res +tclean res +vinit +vsetdispmode 1 +vdisplay res +vfit +decho off +set info1 [tricheck res] +decho on +regexp "Free_links +(\[0-9\]+) +Cross_face_errors +(\[0-9\]+) +Async_edges +(\[0-9\]+) +Free_nodes +(\[0-9\]+)" $info1 full freelinks1 crossfaces1 asyncedges1 freenodes1 + +vclear +vdisplay res +vsetdispmode 1 +vfit +decho off +set info2 [tricheck res] +decho on +regexp "Free_links +(\[0-9\]+) +Cross_face_errors +(\[0-9\]+) +Async_edges +(\[0-9\]+) +Free_nodes +(\[0-9\]+)" $info2 full freelinks2 crossfaces2 asyncedges2 freenodes2 +if { $freelinks1 != $freelinks2 } { + puts "Error: Free links are not equal" +} else { + puts "OK: Free links are equal" +} +if { $crossfaces1 != $crossfaces2 } { + puts "Error: Cross faces are not equal" +} else { + puts "OK: Cross faces are equal" +} +if { $asyncedges1 != $asyncedges2 } { + puts "Error: Async edges are not equal" +} else { + puts "OK: Async edges are equal" +} +if { $freenodes1 != $freenodes2 } { + puts "Error: Free nodes are not equal" +} else { + puts "OK: Free nodes are not equal" +} + +set only_screen 1