1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/tests/bugs/vis/bug24288_2
aba 938d454409 0024288: Provide flipping text for AIS_Dimensions
- OpenGl_Flipper class added to provide text flipping.
  - Added Graphic3d_Mat4, OpenGl_Mat4 definitions for use with TKOpenGl matrix types.
  - Added flipping parameters for dimensions with 3D text labels at AIS_Dimension class.
  - Test cases.
2013-11-21 17:25:01 +04:00

47 lines
999 B
Plaintext

puts "============"
puts "CR24288"
puts "============"
puts ""
#######################################################################
# Provide a text flipping
# Test for text flipping after Y rotation
#######################################################################
pload VISUALIZATION
set m_pi 3,14
set m_pi2 1,57
vinit
vpoint radP1 0 0 0
vpoint radP2 50 50 0
vpoint radP3 100 0 0
vcircle circle radP1 radP2 radP3 0
vrotate 0 -$m_pi2 0
verase radP1 radP2 radP3
vdim -radius -name=dim -text=3d circle
vdisplay dim
vfit
vmoveto 102 144
set x_coord 153
set y_coord 153
checkcolor $x_coord $y_coord 0 1 1
if { $stat != 1 } {
puts "Error : Highlighting of radius dimension with 3d text before flipping is wrong."
}
# Y axis rotation
vrotate 0 $m_pi 0
vfit
vmoveto 205 205
set x_coord 96
set y_coord 296
checkcolor $x_coord $y_coord 0 1 1
if { $stat != 1 } {
puts "Error : Highlighting of radius dimension with 3d text with flipping after y rotation is wrong."
}
set only_screen 1