a6eb515f |
1 | puts "============" |
2 | puts "CR24133" |
3 | puts "============" |
4 | puts "" |
5 | ####################################################################### |
6 | # Development of improvement of dimensions implementation |
7 | # Angle dimension |
8 | ####################################################################### |
9 | pload VISUALIZATION |
10 | |
6fb1a930 |
11 | vfont add [locate_data_file DejaVuSans.ttf] SansFont |
12 | |
a6eb515f |
13 | vinit |
14 | vpoint angleP1 0 0 0 |
15 | vpoint angleP2 50 50 50 |
16 | vpoint angleP3 50 50 100 |
6fb1a930 |
17 | vdimension dim1 -angle -shapes angleP1 angleP2 angleP3 -font SansFont |
a6eb515f |
18 | vfit |
19 | vmoveto 249 206 |
20 | |
21 | set x_coord 249 |
22 | set y_coord 200 |
23 | |
24 | checkcolor $x_coord $y_coord 0 1 1 |
25 | |
26 | if { $stat != 1 } { |
27 | puts "Error : Highlighting of angle dimension with 2d text is wrong." |
28 | } |
d7bffd44 |
29 | vinit Viewer2/View2 |
30 | vdisplay angleP1 angleP2 angleP3 |
6fb1a930 |
31 | vdimension dim2 -angle -text 3d -shapes angleP1 angleP2 angleP3 -font SansFont |
a6eb515f |
32 | vfit |
33 | vmoveto 263 251 |
34 | |
d7bffd44 |
35 | set x_coord 335 |
36 | set y_coord 319 |
a6eb515f |
37 | |
38 | checkcolor $x_coord $y_coord 0 1 1 |
39 | |
40 | if { $stat != 1 } { |
41 | puts "Error : Highlighting of angle dimension with 3d text is wrong." |
42 | } |
43 | |
5747059b |
44 | checkview -screenshot -3d -path ${imagedir}/${test_image}.png |