33425a46 |
1 | puts "============" |
2 | puts "0032143: Visualization - add option excluding transparent object from sorting" |
3 | puts "============" |
4 | puts "" |
5 | |
6 | pload MODELING VISUALIZATION |
7 | vclear |
8 | vinit View1 -width 512 -height 512 |
9 | vbackground -gradient GRAY20 GRAY80 |
10 | restore [locate_data_file Ball.brep] b |
11 | vdisplay -dispMode 1 b |
12 | vfit |
13 | |
14 | set dx 220; set dy 74 |
15 | set logoPath "$::env(CSF_OCCTResourcePath)/DrawResources/OCC_logo.png" |
16 | box logo $dx $dy 0 -preview |
17 | vdisplay -dispMode 1 logo -topmost -2d bottomRight [expr $dx+25] 25 |
18 | vtexture logo "$logoPath" |
19 | vaspects logo -alphaMode BLEND -shadingModel UNLIT |
20 | vdisplay logo -underlay |
21 | if { [vreadpixel 320 440 -rgb -name] != "DEEPSKYBLUE3" } { puts "Error: Unexpected color for BLEND" } |
22 | vaspects logo -alphaMode MASKBLEND 0.001 -shadingModel UNLIT |
23 | if { [vreadpixel 320 440 -rgb -name] != "DARKGOLDENROD" } { puts "Error: Unexpected color for MASKBLEND" } |
24 | |
25 | vdump ${imagedir}/${casename}.png |