File: bug24133_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 (42 lines) | stat: -rw-r--r-- 945 bytes parent folder | download | duplicates (5)
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
puts "============"
puts "CR24133"
puts "============"
puts ""
#######################################################################
#  Development of improvement of dimensions implementation
#  Angle dimension
#######################################################################
pload VISUALIZATION

vinit
vpoint angleP1 0 0 0
vpoint angleP2 50 50 50
vpoint angleP3 50 50 100
vdimension dim1 -angle -shapes angleP1 angleP2 angleP3
vfit
vmoveto 249 206

set x_coord 249
set y_coord 200

checkcolor $x_coord $y_coord 0 1 1

if { $stat != 1 } {
   puts "Error : Highlighting of angle dimension with 2d text is wrong."
}
vinit Viewer2/View2
vdisplay angleP1 angleP2 angleP3
vdimension dim2 -angle -text 3d -shapes angleP1 angleP2 angleP3
vfit
vmoveto 263 251

set x_coord 335
set y_coord 319

checkcolor $x_coord $y_coord 0 1 1

if { $stat != 1 } {
   puts "Error : Highlighting of angle dimension with 3d text is wrong."
}

set only_screen 1