a6eb515f |
1 | puts "============" |
2 | puts "CR24133" |
3 | puts "============" |
4 | puts "" |
5 | ####################################################################### |
6 | # Development of improvement of dimensions implementation |
7 | # Diameter dimension |
8 | ####################################################################### |
9 | pload VISUALIZATION |
10 | |
11 | vinit |
12 | vpoint diamP1 0 0 0 |
13 | vpoint diamP2 50 50 0 |
14 | vpoint diamP3 100 0 0 |
15 | vcircle circle diamP1 diamP2 diamP3 0 |
16 | verase diamP1 diamP2 diamP3 |
0499eb06 |
17 | vdimension dim1 -diameter -shapes circle |
a6eb515f |
18 | vfit |
19 | vmoveto 208 205 |
20 | |
21 | set x_coord 296 |
22 | set y_coord 257 |
23 | |
24 | checkcolor $x_coord $y_coord 0 1 1 |
25 | |
26 | if { $stat != 1 } { |
27 | puts "Error : Highlighting of diameter dimension with 2d text is wrong." |
28 | } |
29 | |
d7bffd44 |
30 | vinit Viewer2/View2 |
31 | vdisplay circle |
0499eb06 |
32 | vdimension dim2 -diameter -text 3d -shapes circle |
a6eb515f |
33 | vfit |
34 | vmoveto 208 205 |
35 | |
36 | set x_coord 296 |
37 | set y_coord 257 |
38 | |
39 | checkcolor $x_coord $y_coord 0 1 1 |
40 | |
41 | if { $stat != 1 } { |
42 | puts "Error : Highlighting of diameter dimension with 3d text is wrong." |
43 | } |
44 | |
45 | set only_screen 1 |