0031999: Tests - request Core Profile on macOS for Ray-Tracing tests
[occt.git] / tests / bugs / vis / bug22701
CommitLineData
7faaccfd 1puts "============"
2puts "OCC22701"
3puts "============"
4puts ""
5#######################################################################
6# Regression in 6.5.1 - Wrong visualization
7#######################################################################
8
9set BugNumber OCC22701
10
11# Data
12
13set scale 276.45658048904141
7faaccfd 14set proj_X -0.8895147442817688
15set proj_Y -0.37965071201324463
16set proj_Z 0.25422060489654541
17set up_X -0.055201318114995956
18set up_Y 0.64161688089370728
19set up_Z 0.76503568887710571
197ac94e 20set at_X 0.248127012715387
21set at_Y 0.109238834542233
22set at_Z -1.2607059785715
7faaccfd 23
24set x1 105
25set y1 275
26
27set x2 112
28set y2 248
29
30set Hole1_R 1
31set Hole1_G 0.76470500230789185
32set Hole1_B 0.16078400611877441
33set Hole2_R 0.68235200643539429
34set Hole2_G 0.48235198855400085
35set Hole2_B 0.078431002795696259
36
37# Start
38
39restore [locate_data_file PFS04041r1.brep] result
40vinit
41vdisplay result
42vfit
43
44vsetdispmode 1
45vfit
46
47
197ac94e 48vviewparams -scale ${scale} -proj ${proj_X} ${proj_Y} ${proj_Z} -up ${up_X} ${up_Y} ${up_Z} -at ${at_X} ${at_Y} ${at_Z}
7faaccfd 49
50checkcolor ${x1} ${y1} ${Hole1_R} ${Hole1_G} ${Hole1_B}
51checkcolor ${x2} ${y2} ${Hole2_R} ${Hole2_G} ${Hole2_B}
52
5747059b 53checkview -screenshot -3d -path ${imagedir}/${test_image}.png