0030409: Data Exchange - exception during VRML file export
[occt.git] / tests / bugs / xde / bug25381
1 puts "============"
2 puts "0025381: Visualization - XCAFPrs_AISObject ignores visibility flag for sub-shapes"
3 puts "============"
4 puts ""
5
6 pload XDE OCAF VISUALIZATION
7 catch { Close D }
8 ReadStep D [locate_data_file bug25381_test_assembly_invisible.step]
9 XShow D
10 vaxo
11 vfit
12 vsetdispmode 1
13 vselprops dynHighlight -dispMode -1
14 vmoveto 300 200
15 if { [vreadpixel 250 200 rgb name] != "DARKTURQUOISE" } { puts "Error: object is NOT picked" }
16 vmoveto 200 250
17 if { [vreadpixel 200 250 rgb name] != "BLACK"} { puts "Error: hidden part is displayed" }
18 if { [vreadpixel 250 200 rgb name] != "RED4" } { puts "Error: object is picked by hidden part" }
19
20 vdump ${imagedir}/${casename}.png