0031304: Configuration - TKACIS building failure due to duplicated symbol GeomFillFus...
[occt.git] / tests / bugs / vis / bug24288_2
CommitLineData
938d4544 1puts "============"
2puts "CR24288"
3puts "============"
4puts ""
5#######################################################################
6# Provide a text flipping
7# Test for text flipping after Y rotation
8#######################################################################
9pload VISUALIZATION
10
6fb1a930 11vfont add [locate_data_file DejaVuSans.ttf] SansFont
12
938d4544 13set m_pi 3,14
14set m_pi2 1,57
15vinit
16vpoint radP1 0 0 0
17vpoint radP2 50 50 0
18vpoint radP3 100 0 0
19vcircle circle radP1 radP2 radP3 0
20vrotate 0 -$m_pi2 0
21verase radP1 radP2 radP3
6fb1a930 22vdimension dim -radius -text 3d -shapes circle -font SansFont
938d4544 23vfit
d7bffd44 24vmoveto 110 111
938d4544 25
d7bffd44 26set x_coord 196
27set y_coord 196
938d4544 28checkcolor $x_coord $y_coord 0 1 1
29
30if { $stat != 1 } {
31 puts "Error : Highlighting of radius dimension with 3d text before flipping is wrong."
32}
33
34# Y axis rotation
35vrotate 0 $m_pi 0
36vfit
485a1040 37vmoveto 159 246
938d4544 38
d7bffd44 39set x_coord 113
40set y_coord 294
938d4544 41checkcolor $x_coord $y_coord 0 1 1
42
43if { $stat != 1 } {
44 puts "Error : Highlighting of radius dimension with 3d text with flipping after y rotation is wrong."
45}
46
5747059b 47checkview -screenshot -3d -path ${imagedir}/${test_image}.png