0024887: Visualization - revise and extend Raytracing controls
[occt.git] / tests / v3d / raytrace / connected
CommitLineData
d5af8626 1puts "========"
2puts "Ray Tracing - check rendering of multi-connected structures"
3puts "========"
4
5# create boxes
6box b1 0 0 0 1 2 3
7box b2 3 0 0 3 2 1
8
9# draw box
10vinit View1
11vclear
bc8c79bb 12vrenderparams -rasterization
d5af8626 13vsetdispmode 1
d5af8626 14vaxo
15vconnectsh b1c -3 0 0 1 0 0 0 0 1 b1 b2
16vfit
17vrotate 0.2 0.0 0.0
b5ac8292 18vfit
d5af8626 19vclear
20vconnectsh b1c -3 0 0 1 0 0 0 0 1 b1 b2
21
22# take snapshot with fixed pipeline
23vdump $::imagedir/${::casename}_OFF.png
24
25# turn on ray tracing
bc8c79bb 26vrenderparams -raytrace
d5af8626 27vdump $::imagedir/${::casename}_rt1.png
28
29vclear
30vconnectsh b1c -3 0 0 1 0 0 0 0 1 b1 b2