1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00
Files
occt/tests/bugs/vis/bug24133_3
isk 6fb1a930e2 0024387: Tests - use system-independent fonts in test cases
Add a new parameter "-font FontName" to the command "vdimension".
Tuning of test-cases
2015-08-27 15:30:18 +03:00

48 lines
1.0 KiB
Plaintext

puts "============"
puts "CR24133"
puts "============"
puts ""
#######################################################################
# Development of improvement of dimensions implementation
# Radius dimension
#######################################################################
pload VISUALIZATION
vfont add [locate_data_file DejaVuSans.ttf] SansFont
vinit
vpoint radP1 0 0 0
vpoint radP2 50 50 0
vpoint radP3 100 0 0
vcircle circle radP1 radP2 radP3 0
verase radP1 radP2 radP3
vdimension dim1 -radius -shapes circle -font SansFont
vfit
vmoveto 123 158
set x_coord 112
set y_coord 151
checkcolor $x_coord $y_coord 0 1 1
if { $stat != 1 } {
puts "Error : Highlighting of radius dimension with 2d text is wrong."
}
vinit Viewer2/View2
vdisplay circle
vdimension dim2 -radius -text 3d -shapes circle -font SansFont
vfit
vmoveto 191 196
set x_coord 112
set y_coord 151
checkcolor $x_coord $y_coord 0 1 1
if { $stat != 1 } {
puts "Error : Highlighting of radius dimension with 3d text is wrong."
}
set only_screen 1