1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/tests/bugs/modalg_1/bug14780
ski 5747059b21 0026833: Create command checkview containing all viewer types
Created command checkview for displaying shapes.
2016-02-05 11:14:37 +03:00

32 lines
750 B
Plaintext
Executable File

puts "============"
puts "OCC14780"
puts "============"
puts ""
######################################################
# Boolean operations (section, fuse, common, cut) give incorrect result
######################################################
set BugNumber OCC14780
restore [locate_data_file OCC14780_part1.brep] s1
restore [locate_data_file OCC14780_part2.brep] s2
bop s1 s2
bopsection result
regexp {nb alone Vertices +: +([-0-9.+eE]+)} [checksection result] full Vertices
set good_Vertices 0
if { ${Vertices} != ${good_Vertices} } {
puts "Faulty ${BugNumber}"
} else {
puts "OK ${BugNumber}"
}
checkprops result -l 171.289
checkshape result
checksection result
checkview -display result -2d -path ${imagedir}/${test_image}.png