0031189: Draw Harness, ViewerTest - send messages to Message::DefaultMessenger()
[occt.git] / tests / bugs / vis / bug30906
CommitLineData
d7fa57a7 1puts "============="
2puts "0030906: Visualization, SelectMgr_ViewerSelector - Object clipping planes overrides View clipping plane for next objects"
3puts "============="
4
5pload MODELING VISUALIZATION
6box b1 1 1 0 1 2 3
7box b2 3 0 0 1 2 3
8vclear
9vinit View1
10vdisplay -dispMode 1 -highMode 1 b1 b2
11vfit
12vzbufftrihedron
13vpoint p0 0 0 0
14vclipplane c1 -equation 0 1 0 1 -setOverrideGlobal b1
15vclipplane c2 -equation 0 1 0 -1 -set
16vmoveto 200 200
ba00aab7 17if { [vreadpixel 250 200 -rgb -name] != "DARKGOLDENROD" } { puts "Error: selection of clipped object" }
18if { [vreadpixel 150 200 -rgb -name] != "CYAN2" } { puts "Error: object is not selected" }
d7fa57a7 19
20vdump ${imagedir}/${casename}.png