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:
parent
3edc7eea42
commit
a507ffd9d7
49
tests/bugs/mesh/bug25307
Normal file
49
tests/bugs/mesh/bug25307
Normal 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
|
Loading…
x
Reference in New Issue
Block a user