0030969: Coding Rules - refactor Quantity_Color.cxx color table definition
[occt.git] / tests / v3d / raytrace / bug25221
CommitLineData
be86ba90 1puts "========"
2puts "OCC25221"
3puts "========"
4##########################################
5## Visualization - Depth test errors in ray-tracing scene containing face outlines
6##########################################
7
8# custom shapes
9set aShape [locate_data_file occ/Bottom.brep]
10
11# setup 3D viewer content
12vinit name=View1 w=512 h=512
13
14vsetdispmode 1
15restore $aShape s
16vdisplay s
17vfit
18
19# activate ray-tracing
20vrenderparams -raytrace
21
22# highlight the shape
23vmoveto 200 200
24
25vdump $imagedir/${casename}_lines_closeup.png
26
27vzoom 0.5
28
29vdump $imagedir/${casename}_lines_far.png
30
31vfit
32
33# change camera to perspective
34vcamera -persp
35
36# change highlight display mode
37vdisplay s -highMode 1
38
39# highlight the shape again
40vmoveto 0 0
41vmoveto 200 200
42
43vdump $imagedir/${casename}_faces_closeup.png
44
45# apply transformation
30f5e1a7 46vlocation s -rotate 0 0 0 0 0 1 10
47vlocation s -translate -30 0 0
be86ba90 48vmoveto 0 0
49vmoveto 200 200
50
51vdump $imagedir/${casename}_faces_closeup_rotated.png
52
30f5e1a7 53vlocation s -reset
be86ba90 54vmoveto 0 0
55vmoveto 200 200
56
57vzoom 0.5
58
59vdump $imagedir/${casename}_faces_far.png
60
61# enable Path tracing
62vrenderparams -gi
63vfit
64vfps 100
65
66vdump $imagedir/${casename}_faces_pt.png
67
68# rotate camera
69vrotate 0 0.2 0
70vfps 100
71
72vdump $imagedir/${casename}_faces_pt_rot.png