File: bug7691

package info (click to toggle)
oce 0.18.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 301,548 kB
  • sloc: cpp: 1,190,609; ansic: 67,225; sh: 11,630; tcl: 7,954; cs: 5,221; python: 2,867; java: 1,522; makefile: 342; xml: 292; perl: 37
file content (44 lines) | stat: -rw-r--r-- 880 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
puts "============"
puts "OCC7691"
puts "============"
puts ""
#######################################################################
# Wrong hidden lines computed by HLRBRep_PolyAlgo and 
#       HLRBRep_PolyHLRToShape in OCC 5.1
#######################################################################

set BugNumber OCC7691
set status 0

# load shape
restore [locate_data_file OCC7691-bottle.brep] shape
trotate shape 0 0 0 1 0 0 -90

# init viewer and compute hlr shape
vinit
vtop
vcomputehlr shape hlr
vfit

set colorR 1
set colorG 0 
set colorB 0

# move cursor not to select shape
vmoveto 0 0

# start position of color picking
set ptx 2
set pty 200
checkcolor $ptx $pty $colorR $colorG $colorB

if { ${stat} != 0 } {
    puts "HLR shape is correct"
    puts "OK ${BugNumber}"
} else {
    puts "HLR shape is incorrect"
    puts "Faulty ${BugNumber}"
}

set only_screen 1