0029768: Visualization, TKOpenGl - structure is entirely clipped by suppressed clipping
[occt.git] / tests / bugs / vis / bug25540
CommitLineData
7f917335 1puts "============"
2puts "CR25540"
3puts "Check that the discretization of local selection,"
4puts "wireframe and shaded presentation of shape is identical."
5puts "============"
6puts ""
7
8vinit View1 w=912 h=912
9vclear
10
11# Create object in shaded mode
12vsetdispmode 1
13pcylinder p 1 100
14vdisplay p
15vfit
16
17# Setup field of view
18vrotate 1 1.5 0
19vfit
20vtranslateview 24 18.5 0
21vzoom 32
22vtranslateview -0.1 -0.6 0
23vzoom 2
24
25vdump $imagedir/${casename}_shaded_pres.png
26
27vmoveto 100 100
28vdump $imagedir/${casename}_h_pres.png
29
30# Activate the local selection by edges and hilight small circle edge.
31# It's discretization should coincide with discretization of whole shape hiligting.
8c088c52 32vselmode p -set EDGE 1
7f917335 33vmoveto 130 80
34vdump $imagedir/${casename}_local_h_pres.png
35
7f917335 36# Explode object on faces
37explode p F
38# Create colored shape: set another color to one face
39vaspects p -subshapes p_3 -setcolor RED
40
8c088c52 41vselmode p -set 0 1
7f917335 42vmoveto 100 100
43vdump $imagedir/${casename}_h_sub_pres.png
44
8c088c52 45vselmode p -set EDGE 1
7f917335 46vmoveto 130 80
47vdump $imagedir/${casename}_local_h_sub_pres.png