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

31 lines
683 B
Plaintext
Executable File

puts "============"
puts "BUC60788"
puts "case 1"
puts "============"
#restore Intersection_Shell1_Case1.brep S1
#restore Intersection_Shell2_Case1.brep S2
restore [locate_data_file buc60788a.brep] S1
checkshape S1
restore [locate_data_file buc60788b.brep] S2
checkshape S2
bsection result S1 S2
set nb_info [nbshapes result]
regexp {VERTEX +: +([-0-9.+eE]+)} $nb_info full err
regexp {SHELL +: +([-0-9.+eE]+)} $nb_info full err1
if { $err != 4 && $err1 != 3} {
puts "Faulty : result (res) is incorrect"
} else {
puts "BUC60788 - OK"
}
checkprops result -l 750
checkshape result
checksection result
checkview -display result -2d -path ${imagedir}/${test_image}.png