0031999: Tests - request Core Profile on macOS for Ray-Tracing tests
[occt.git] / tests / bugs / vis / bug30756
CommitLineData
edc4ba21 1puts "============="
2puts "0030756: Visualization, TKOpenGl - capping plane does not work for ZLayer with non-zero origin"
3puts "============="
4
5pload MODELING VISUALIZATION
6box b 1 2 3
7vclear
8vclose ALL
9vinit View1
10vzbufftrihedron
11vaxo
12vdisplay -dispMode 1 b
13vfit
14vclipplane p 1 -equation 0 1 0 -1 -set -capping 1
ba00aab7 15if { [vreadpixel 200 200 rgb name] != "GRAY14" } { puts "Error: capping does not work with zero origin" }
edc4ba21 16vzlayer DEFAULT -origin 0 10 0
ba00aab7 17if { [vreadpixel 200 200 rgb name] != "GRAY14" } { puts "Error: capping does not work with non-zero origin" }
edc4ba21 18
19vdump ${imagedir}/${casename}.png