0030969: Coding Rules - refactor Quantity_Color.cxx color table definition
[occt.git] / tests / bugs / vis / bug24224
CommitLineData
b859a34d 1puts "==========="
2puts "OCC24224"
3puts "==========="
4puts ""
5##########################################################################
6# Suspicious logics in changing clipping planets at OpenGL_Structure
7##########################################################################
8
9## centre rectangle
10set x1_coord 150
11set y1_coord 250
12
13## right rectangle
14set x2_coord 255
15set y2_coord 320
16
17## left rectangle
18set x3_coord 73
19set y3_coord 150
20
deb02f86 21vclear
22vinit View1
b859a34d 23box b1 0 0 0 10 10 10
24box b2 30 0 0 10 40 10
25box b3 -30 0 0 20 20 20
26vsetdispmode 1
27vdisplay b1 b2 b3
28vfit
29
30## test view-level clipping
31vclipplane create pln1
32vclipplane change pln1 equation 0 1 0 -5
33vclipplane change pln1 capping on
34vclipplane change pln1 capping color 0.9 0.9 0.9
35vclipplane set pln1 view Driver1/Viewer1/View1
36
37checkcolor $x1_coord $y1_coord 0.9 0.9 0.9
38checkcolor $x2_coord $y2_coord 0.9 0.9 0.9
39
40## test sharing of planes between view and object
41vclipplane set pln1 object b1
42
43## test object-level clipping
44vclipplane create pln2
45vclipplane change pln2 equation -0.707 0.707 0 -25
46vclipplane change pln2 capping on
47vclipplane change pln2 capping color 0.5 0.5 0.9
48vclipplane change pln2 capping hatch on
49vclipplane set pln2 object b3
50
51checkcolor $x3_coord $y3_coord 0.5 0.5 0.9
52
5747059b 53checkview -screenshot -3d -path ${imagedir}/${test_image}.png