0030906: Visualization, SelectMgr_ViewerSelector - Object clipping planes overrides...
[occt.git] / tests / bugs / vis / bug30906
diff --git a/tests/bugs/vis/bug30906 b/tests/bugs/vis/bug30906
new file mode 100644 (file)
index 0000000..ab1410d
--- /dev/null
@@ -0,0 +1,20 @@
+puts "============="
+puts "0030906: Visualization, SelectMgr_ViewerSelector - Object clipping planes overrides View clipping plane for next objects"
+puts "============="
+
+pload MODELING VISUALIZATION
+box b1 1 1 0 1 2 3
+box b2 3 0 0 1 2 3
+vclear
+vinit View1
+vdisplay -dispMode 1 -highMode 1 b1 b2
+vfit
+vzbufftrihedron
+vpoint p0 0 0 0
+vclipplane c1 -equation 0 1 0  1 -setOverrideGlobal b1
+vclipplane c2 -equation 0 1 0 -1 -set
+vmoveto 200 200
+if { [vreadpixel 250 200 -rgb -name] != "DARKGOLDENROD3" } { puts "Error: selection of clipped object" }
+if { [vreadpixel 150 200 -rgb -name] != "DARKTURQUOISE"  } { puts "Error: object is not selected" }
+
+vdump ${imagedir}/${casename}.png