1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00
occt/tests/bugs/mesh/bug25307
apn a507ffd9d7 0025307: Problems resulted from re-triangulation
Added test case bugs/mesh/bug25307
2014-11-05 16:51:08 +03:00

50 lines
1.3 KiB
Plaintext

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