0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / tests / v3d / materials / bug27818_2
CommitLineData
8e5fb5ea 1puts "============"
2puts "OCC27818_2"
3puts "============"
4puts ""
5####################################################################################
6# Visualization - provide an interface to define highlight presentation properties:
7# test change of highlight and selection properties for particular objects
8####################################################################################
9
8e5fb5ea 10pload QAcommands VISUALIZATION
11
0d828ac8 12vinit View1
8e5fb5ea 13OCC27818
14
15vfit
16
17vmoveto 200 200
18set aPixelColor [vreadpixel 200 200 name rgba]
19set aColor [lindex [split $aPixelColor { }] 0]
20set aTrsp [lindex [split $aPixelColor { }] 1]
21if {$aColor != "CHOCOLATE3" && abs($aTrsp - 1.0) < 0.1} {
22 puts "ERROR: dynamic highlight of 2nd box is displayed with wrong color!"
23}
24
25vdump $imagedir/${casename}_dyn.png
26
e3d4b879 27vselect 50 200 -xor
28vselect 200 200 -xor
29vselect 350 200 -xor
8e5fb5ea 30
ba00aab7 31if {[vreadpixel 350 200 name rgba] != "RED2 1" || [vreadpixel 350 200 name rgba] == [vreadpixel 200 200 name rgba]} {
8e5fb5ea 32 puts "ERROR: selection highlight of 3rd box is displayed with wrong color!"
33}
34
35vdump $imagedir/${casename}_sel.png