0029528: Visualization, TKOpenGl - allow defining sRGB textures
[occt.git] / tests / bugs / vis / bug7691
CommitLineData
6fcb77aa 1puts "============"
2puts "OCC7691"
3puts "============"
4puts ""
5#######################################################################
6# Wrong hidden lines computed by HLRBRep_PolyAlgo and
7# HLRBRep_PolyHLRToShape in OCC 5.1
8#######################################################################
9
10set BugNumber OCC7691
11set status 0
12
13# load shape
14restore [locate_data_file OCC7691-bottle.brep] shape
15trotate shape 0 0 0 1 0 0 -90
16
17# init viewer and compute hlr shape
18vinit
19vtop
20vcomputehlr shape hlr
21vfit
22
23set colorR 1
24set colorG 0
25set colorB 0
26
27# move cursor not to select shape
28vmoveto 0 0
29
30# start position of color picking
31set ptx 2
32set pty 200
33checkcolor $ptx $pty $colorR $colorG $colorB
34
35if { ${stat} != 0 } {
36 puts "HLR shape is correct"
37 puts "OK ${BugNumber}"
38} else {
39 puts "HLR shape is incorrect"
40 puts "Faulty ${BugNumber}"
41}
42
5747059b 43checkview -screenshot -3d -path ${imagedir}/${test_image}.png
6fcb77aa 44