1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00
occt/tests/v3d/raytrace/connected
dbp bc8c79bbd5 0024887: Visualization - revise and extend Raytracing controls
Fix material test case.
Fix ray-tracing test case and sample.
2014-05-22 19:00:18 +04:00

31 lines
562 B
Plaintext

puts "========"
puts "Ray Tracing - check rendering of multi-connected structures"
puts "========"
# create boxes
box b1 0 0 0 1 2 3
box b2 3 0 0 3 2 1
# draw box
vinit View1
vclear
vrenderparams -rasterization
vsetdispmode 1
vaxo
vconnectsh b1c -3 0 0 1 0 0 0 0 1 b1 b2
vfit
vrotate 0.2 0.0 0.0
vfit
vclear
vconnectsh b1c -3 0 0 1 0 0 0 0 1 b1 b2
# take snapshot with fixed pipeline
vdump $::imagedir/${::casename}_OFF.png
# turn on ray tracing
vrenderparams -raytrace
vdump $::imagedir/${::casename}_rt1.png
vclear
vconnectsh b1c -3 0 0 1 0 0 0 0 1 b1 b2