938d4544 |
1 | puts "============" |
2 | puts "CR24288" |
3 | puts "============" |
4 | puts "" |
5 | ####################################################################### |
6 | # Provide a text flipping |
7 | # Test for text flipping after Z rotation |
8 | ####################################################################### |
9 | pload VISUALIZATION |
10 | |
11 | set m_pi 3,14 |
12 | set m_pi2 1,57 |
13 | vinit |
14 | vpoint radP1 0 0 0 |
15 | vpoint radP2 50 50 0 |
16 | vpoint radP3 100 0 0 |
17 | vcircle circle radP1 radP2 radP3 0 |
18 | vrotate 0 -$m_pi2 0 |
19 | verase radP1 radP2 radP3 |
0499eb06 |
20 | vdimension dim -radius -text 3d -shapes circle |
938d4544 |
21 | vfit |
d7bffd44 |
22 | vmoveto 110 111 |
938d4544 |
23 | |
d7bffd44 |
24 | set x_coord 196 |
25 | set y_coord 196 |
938d4544 |
26 | checkcolor $x_coord $y_coord 0 1 1 |
27 | |
28 | if { $stat != 1 } { |
29 | puts "Error : Highlighting of radius dimension with 3d text before flipping is wrong." |
30 | } |
31 | |
32 | # Z axis rotation |
33 | vrotate 0 0 $m_pi |
34 | vfit |
d7bffd44 |
35 | vmoveto 221 217 |
938d4544 |
36 | |
d7bffd44 |
37 | set x_coord 209 |
38 | set y_coord 208 |
938d4544 |
39 | checkcolor $x_coord $y_coord 0 1 1 |
40 | |
41 | if { $stat != 1 } { |
42 | puts "Error : Highlighting of radius dimension with 3d text with flipping after z rotation is wrong." |
43 | } |
44 | |
45 | set only_screen 1 |