0027958: Visualization, AIS_Trihedron - add shaded presentation option
[occt.git] / tests / bugs / vis / bug85_1
CommitLineData
a87752f3 1puts "==========="
2puts "BUC60918"
3puts "OCC85"
4puts "==========="
5puts ""
6###############################
7## Shape drawn in transparency mode does not always eclipse another shapes
8###############################
9
10puts "=================================="
11puts "It takes visual check for this BUG"
12puts "=================================="
13
14pload OCAF
15
16box b2 20 20 20 5 5 5
17box b3 30 30 30
18box b4 10 20 25 7 7 7
19explode b3 f
20
21NewDocument D
22SetShape D 0:1:1 b3_2
23SetShape D 0:1:2 b2
24SetShape D 0:1:3 b4
25AISSet D 0:1:1 NS
26AISSet D 0:1:2 NS
27AISSet D 0:1:3 NS
28
29AISInitViewer D
30AISMaterial D 0:1:1 plastic
31AISMaterial D 0:1:2 plastic
32AISMaterial D 0:1:3 plastic
33AISTransparency D 0:1:1 0.6
34AISColor D 0:1:1 1
35AISDisplay D 0:1:1
36AISDisplay D 0:1:2
37AISDisplay D 0:1:3
38vfit
39vsetdispmode 1
40
41box b 10 10 10
42SetShape D 0:1:4 b
43AISSet D 0:1:4 NS
44AISDisplay D 0:1:4
45
f1aa2b62 46set x_coord 273
47set y_coord 115
a87752f3 48
f1aa2b62 49checkcolor $x_coord $y_coord 0.78 0.55 0.9
a87752f3 50
5747059b 51checkview -screenshot -3d -path ${imagedir}/${test_image}.png
a87752f3 52
53
f1aa2b62 54