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 fc73a20256 0024739: TKOpenGl - port ray-tracing from OpenCL to GLSL for better integration and portability
RayTracing - disable reflections by default
Fix possible compilation issue on Mac OS X.
2014-04-04 14:15:08 +04:00

31 lines
533 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
vsetdispmode 1
vraytrace 0
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
vraytrace 1
vdump $::imagedir/${::casename}_rt1.png
vclear
vconnectsh b1c -3 0 0 1 0 0 0 0 1 b1 b2