1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/vis/bug22304
ski 7faaccfd34 Added testing cases from grid CHL
Removing test duplicate
2013-02-22 14:52:42 +04:00

49 lines
931 B
Plaintext
Executable File

puts "==========="
puts "OCC22304"
puts "==========="
puts ""
#######################################################################
# Incorrect triangulation on face of the attached file
#######################################################################
set BugNumber OCC22304
restore [locate_data_file OCC22304-face_976_badvisu.brep] result
tclean result
vinit
vdisplay result
vfit
vsetdispmode 1
set tri_info [trinfo result]
regexp { +([-0-9.+eE]+) +triangles} $tri_info full tri
regexp { +([-0-9.+eE]+) +nodes} $tri_info full nod
set status 0
if { ${tri} > 0 } {
puts "triangles: OK ${BugNumber}"
} else {
puts "triangles: Faulty ${BugNumber}"
set status 1
}
if { ${nod} > 0 } {
puts "nodes: OK ${BugNumber}"
} else {
puts "nodes: Faulty ${BugNumber}"
set status 1
}
# Resume
puts ""
if { ${status} != 0 } {
puts "Faulty ${BugNumber}"
} else {
puts "OK ${BugNumber}"
}
set only_screen 1