0023400: Triangulation of thin ring contains gap
[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
21vinit
22box b1 0 0 0 10 10 10
23box b2 30 0 0 10 40 10
24box b3 -30 0 0 20 20 20
25vsetdispmode 1
26vdisplay b1 b2 b3
27vfit
28
29## test view-level clipping
30vclipplane create pln1
31vclipplane change pln1 equation 0 1 0 -5
32vclipplane change pln1 capping on
33vclipplane change pln1 capping color 0.9 0.9 0.9
34vclipplane set pln1 view Driver1/Viewer1/View1
35
36checkcolor $x1_coord $y1_coord 0.9 0.9 0.9
37checkcolor $x2_coord $y2_coord 0.9 0.9 0.9
38
39## test sharing of planes between view and object
40vclipplane set pln1 object b1
41
42## test object-level clipping
43vclipplane create pln2
44vclipplane change pln2 equation -0.707 0.707 0 -25
45vclipplane change pln2 capping on
46vclipplane change pln2 capping color 0.5 0.5 0.9
47vclipplane change pln2 capping hatch on
48vclipplane set pln2 object b3
49
50checkcolor $x3_coord $y3_coord 0.5 0.5 0.9
51
52set only_screen 1
53
54
55