1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00

0025307: Problems resulted from re-triangulation

Added test case bugs/mesh/bug25307
This commit is contained in:
apn 2014-10-31 15:08:49 +03:00 committed by bugmaster
parent 3edc7eea42
commit a507ffd9d7

49
tests/bugs/mesh/bug25307 Normal file
View File

@ -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