1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00
Files
occt/tests/bugs/vis/bug154_2
2012-12-07 16:29:17 +04:00

32 lines
677 B
Plaintext
Executable File

puts "========"
puts "OCC154"
puts "========"
puts ""
#####################################################
##puts "Checking of function V2DERASE "
##puts "(visual checking for this case is desirable)"
#####################################################
v2dinit
box b 1 1 1
v2ddisplay b
box b1 10 10 10 1 1 1
v2ddisplay b1
v2dfit
v2derase b1
set color [QAAISGetPixelColor2d 370 37]
regexp {RED +: +([-0-9.+eE]+)} $color full rd
regexp {GREEN +: +([-0-9.+eE]+)} $color full gr
regexp {BLUE +: +([-0-9.+eE]+)} $color full bl
if { ${rd} != 0 || ${gr} != 0 || ${bl} != 0 } {
puts "Error : colors are not equal"
puts "Object was not erased"
}
set only_screen2d 1