0031189: Draw Harness, ViewerTest - send messages to Message::DefaultMessenger()
[occt.git] / tests / bugs / vis / bug27083
1 puts "========"
2 puts "0027083: Visualization, Ray Tracing - shape with visible face boundaries disappears after turning the ray-tracing on"
3 puts "========"
4 puts ""
5
6 pload VISUALIZATION MODELING
7
8 box b 1 1 1
9
10 vclear
11 vinit View1
12
13 vdisplay -noupdate -dispMode 1 b
14 vfit
15 vaspects b -setFaceBoundaryDraw 1 -setFaceBoundaryColor RED -setFaceBoundaryWidth 3
16 vraytrace 1
17
18 if {[vreadpixel 295 255 -rgb -name] != "DARKGOLDENROD"} { puts "ERROR: the box with boundary aspect set is not shown in ray-tracing mode!" }
19 if {[vreadpixel 105  58 -rgb -name] != "RED"}           { puts "ERROR: the box's boundaries are not shown in ray-tracing mode!" }
20
21 vdump $imagedir/${casename}.png