1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-09 18:50:54 +03:00
occt/tests/bugs/demo/CR23409
oan 2e1a4dae4b 0023409: Tricheck command doesn't report problem when triangulation has unexpected holes
Tricheck command improvement for checking triangulation holes on free links
More obvious error message
Added test case bugs demo CR23409
Modified test case offset wire_closed_outside_0_005 G7
2012-09-07 13:58:12 +04:00

35 lines
813 B
Plaintext
Executable File

puts "============"
puts "CR23409"
puts "============"
puts ""
###################################################################################
# Tricheck command doesn't report problem when triangulation has unexpected holes
###################################################################################
restore [locate_data_file bug23167_f397.brep] result
vinit
vsetdispmode 1
vdisplay result
axo
fit
isos result 0
triangles result
set info_bad [tricheck result]
if { [regexp "Not connected mesh inside face 1" $info_bad] != 1 } {
puts "Error : Tricheck command doesn't report message"
}
tclean result
incmesh result 0.01
set info_good [tricheck result]
if { [string compare $info_good "" ] != 0 } {
puts "Error : Tricheck command works incorrect when shape looks good"
}
set 3dviewer 1