File: bug85_2

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 (54 lines) | stat: -rw-r--r-- 1,043 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
45
46
47
48
49
50
51
52
53
54
puts "==========="
puts "BUC60918"
puts "OCC85"
puts "==========="
puts ""
###############################
## Shape drawn in transparency mode does not always eclipse another shapes
###############################

puts "=================================="
puts "It takes visual check for this BUG"
puts "=================================="

pload OCAF

restore [locate_data_file buc60918-psm1.brep] psm1
restore [locate_data_file buc60918-psm2.brep] psm2
restore [locate_data_file buc60918-shl.brep] shl

NewDocument D
SetShape D 0:1:1 shl
SetShape D 0:1:2 psm1
SetShape D 0:1:3 psm2
AISSet   D 0:1:1 NS
AISSet   D 0:1:2 NS
AISSet   D 0:1:3 NS

AISInitViewer D
AISMaterial D 0:1:1 plastic
AISMaterial D 0:1:2 plastic
AISMaterial D 0:1:3 plastic
AISTransparency D 0:1:1 0.6
AISColor D 0:1:1 1
AISDisplay D 0:1:1
AISDisplay D 0:1:2
AISDisplay D 0:1:3
vsetdispmode 1

box b 10 10 10 
SetShape D 0:1:4 b
AISSet D 0:1:4 NS
AISDisplay D 0:1:4
vfit

set x_coord 230
set y_coord 160

checkcolor $x_coord $y_coord 0.76 0.54 0.9

set only_screen 1