Adding test cases from grid chl
[occt.git] / tests / bugs / vis / bug154_2
CommitLineData
a87752f3 1puts "========"
2puts "OCC154"
3puts "========"
4puts ""
5#####################################################
6##puts "Checking of function V2DERASE "
7##puts "(visual checking for this case is desirable)"
8#####################################################
9
10v2dinit
11
12box b 1 1 1
13v2ddisplay b
14box b1 10 10 10 1 1 1
15v2ddisplay b1
16v2dfit
17
18v2derase b1
19
20set color [QAAISGetPixelColor2d 370 37]
21regexp {RED +: +([-0-9.+eE]+)} $color full rd
22regexp {GREEN +: +([-0-9.+eE]+)} $color full gr
23regexp {BLUE +: +([-0-9.+eE]+)} $color full bl
24
25if { ${rd} != 0 || ${gr} != 0 || ${bl} != 0 } {
26 puts "Error : colors are not equal"
27 puts "Object was not erased"
28}
29
30set only_screen2d 1
31