0031999: Tests - request Core Profile on macOS for Ray-Tracing tests
[occt.git] / tests / bugs / vis / bug25723
CommitLineData
4af098ba 1puts "============"
be7fc29e 2puts "OCC25723 Calculate the center of rotation taking into account structure visibility"
4af098ba 3puts "============"
4puts ""
5
4af098ba 6box b1 0 0 0 10 10 10
7box b2 0 0 20 10 10 10
8box b3 0 0 -20 10 10 10
9box b4 0 0 40 10 10 10
10
4af098ba 11vclear
be7fc29e 12vinit View1
4af098ba 13vaxo
14vsetdispmode 1
15
16# turn on solid selection
17vselmode 6 1
18vdisplay b1 b2 b3 b4
19vfit
20
be7fc29e 21# select and hide boxes b2 b3 b4
22vselect 100 100 400 410
4af098ba 23verase
24
25# rotation
be7fc29e 26vrotate -mouseStart 100 100 -mouseMove 300 300
ba00aab7 27if {"[vreadpixel 220 50 rgb name]" != "GOLDENROD3"} { puts "Error: Rotation is not correct" }
4af098ba 28
be7fc29e 29vdump ${imagedir}/${casename}.png