0024288: Provide flipping text for AIS_Dimensions
[occt.git] / tests / bugs / vis / bug24288_3
CommitLineData
938d4544 1puts "============"
2puts "CR24288"
3puts "============"
4puts ""
5#######################################################################
6# Provide a text flipping
7# Test for text flipping after Z rotation
8#######################################################################
9pload VISUALIZATION
10
11set m_pi 3,14
12set m_pi2 1,57
13vinit
14vpoint radP1 0 0 0
15vpoint radP2 50 50 0
16vpoint radP3 100 0 0
17vcircle circle radP1 radP2 radP3 0
18vrotate 0 -$m_pi2 0
19verase radP1 radP2 radP3
20vdim -radius -name=dim -text=3d circle
21vdisplay dim
22vfit
23vmoveto 102 144
24
25set x_coord 153
26set y_coord 153
27checkcolor $x_coord $y_coord 0 1 1
28
29if { $stat != 1 } {
30 puts "Error : Highlighting of radius dimension with 3d text before flipping is wrong."
31}
32
33# Z axis rotation
34vrotate 0 0 $m_pi
35vfit
36vmoveto 176 184
37
38set x_coord 294
39set y_coord 257
40checkcolor $x_coord $y_coord 0 1 1
41
42if { $stat != 1 } {
43 puts "Error : Highlighting of radius dimension with 3d text with flipping after z rotation is wrong."
44}
45
46set only_screen 1