0027958: Visualization, AIS_Trihedron - add shaded presentation option
[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.
32vsetam 2
33vmoveto 130 80
34vdump $imagedir/${casename}_local_h_pres.png
35
36vunsetam
37
38# Explode object on faces
39explode p F
40# Create colored shape: set another color to one face
41vaspects p -subshapes p_3 -setcolor RED
42
43vsetam 0
44vmoveto 100 100
45vdump $imagedir/${casename}_h_sub_pres.png
46
47vsetam 2
48vmoveto 130 80
49vdump $imagedir/${casename}_local_h_sub_pres.png