File: bug22018

package info (click to toggle)
opencascade 7.9.2%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 301,924 kB
  • sloc: cpp: 1,523,264; tcl: 10,159; cs: 5,173; java: 1,554; sh: 1,342; ansic: 827; xml: 699; makefile: 30; javascript: 22
file content (66 lines) | stat: -rw-r--r-- 1,207 bytes parent folder | download | duplicates (3)
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
55
56
57
58
59
60
61
62
63
64
65
66
puts "============"
puts "OCC22018: Select3D_SensitiveCircle::Matches(): DMin parameter left uninitialized"
puts "============"
puts ""

set BugNumber OCC22018

vinit View1

vpoint p1 -5 0 0
vpoint p2 0 5 0
vpoint p3 5 0 0

vcircle c p1 p2 p3 1

vpoint p4 0 0 0
vpoint p5 5 5 0
vpoint p6 10 0 0

vcircle c1 p4 p5 p6 1

verase p1 p2 p3 p4 p5 p6

vfit
vtop

set White_R 1
set White_G 1
set White_B 0.94901901483535767

set Select_R 0
set Select_G 1
set Select_B 1

set x1 150
set x2 300
set y  200

vmoveto 0 0
vmoveto 0 0

if { [vreadpixel $x1 $y rgb name] != "IVORY" || [vreadpixel $x2 $y rgb name] != "IVORY" } {
  puts "Error: unexpected color of not selected object"
}

vmoveto ${x1} ${y}
vmoveto ${x1} ${y}

if { [vreadpixel $x1 $y rgb name] != "WHITE" } {
  puts "Error: unexpected color of selected object"
}
if { [vreadpixel $x2 $y rgb name] != "IVORY" } {
  puts "Error: unexpected color of not selected object"
}

vmoveto ${x2} ${y}
vmoveto ${x2} ${y}

if { [vreadpixel $x1 $y rgb name] != "IVORY" } {
  puts "Error: unexpected color of not selected object"
}
if { [vreadpixel $x2 $y rgb name] != "WHITE" } {
  puts "Error: unexpected color of selected object"
}

vdump ${imagedir}/${casename}.png