0027958: Visualization, AIS_Trihedron - add shaded presentation option
[occt.git] / tests / bugs / vis / bug113
CommitLineData
61c421bf 1puts "================"
2puts "OCC113"
3puts "BUC60978"
4puts "================"
5puts ""
6
7# Data
8set X_01 29
9set Y_01 170
10
11set X_02 204
12set Y_02 300
13
14set scale 60.6309
61c421bf 15set proj_X 0.479541
16set proj_Y 0.586729
17set proj_Z 0.652525
18set up_X -0.838029
19set up_Y 0.0856396
20set up_Z 0.538863
197ac94e 21set at_X 3.61568258316782
22set at_Y 3.30626448080767
23set at_Z 3.11631746104816
61c421bf 24
25# Display two face
26vinit
27box b 10 10 10
28explode b f
29vdisplay b_1
30vdisplay b_2
31vfit
32
61c421bf 33# Check face color
34checkcolor ${X_01} ${Y_01} 0 1 0
35checkcolor ${X_02} ${Y_02} 0 1 0
36
37# Select faces
4754e164 38vchangeselected b_1
39vchangeselected b_2
61c421bf 40
41# Check face color
61c421bf 42checkcolor ${X_01} ${Y_01} 0.8 0.8 0.8
43
61c421bf 44checkcolor ${X_02} ${Y_02} 0.8 0.8 0.8
45
46# Hilight face
4754e164 47vmoveto ${X_01} ${Y_01}
61c421bf 48
49# Check face color
4754e164 50vselect 10 10
51vmoveto ${X_01} ${Y_01}
61c421bf 52checkcolor ${X_01} ${Y_01} 0 1 1
53
4754e164 54vmoveto ${X_02} ${Y_02}
61c421bf 55checkcolor ${X_02} ${Y_02} 0 1 1
56
57# Rotation
197ac94e 58vviewparams -scale ${scale} -proj ${proj_X} ${proj_Y} ${proj_Z} -up ${up_X} ${up_Y} ${up_Z} -at ${at_X} ${at_Y} ${at_Z}
61c421bf 59
5747059b 60checkview -screenshot -3d -path ${imagedir}/${test_image}.png