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

28 lines
743 B
Plaintext
Executable File

puts "========="
puts " OCC4968 "
puts "========="
puts ""
##################################################
# Improve FixShape to correct case of touching wires
##################################################
set BugNumber OCC4968
restore [locate_data_file OCC4968.brep] r
regexp {WIRE +: +([-0-9.+eE]+)} [nbshapes r] full wire_number1
fixshape result r
regexp {WIRE +: +([-0-9.+eE]+)} [nbshapes result] full wire_number2
checkshape result r
puts "wire_number1 = ${wire_number1}"
puts "wire_number2 = ${wire_number2}"
if { ${wire_number2} > ${wire_number1}} {
puts "OK ${BugNumber}: wire number - OK"
} else {
puts "Faulty ${BugNumber}: wrong wire number"
}
checkview -display result -2d -path ${imagedir}/${test_image}.png