0027957: Visualization, AIS_InteractiveContext - protect from displaying the same...
[occt.git] / tests / bugs / vis / bug24133_2
CommitLineData
a6eb515f 1puts "============"
2puts "CR24133"
3puts "============"
4puts ""
5#######################################################################
6# Development of improvement of dimensions implementation
7# Angle dimension
8#######################################################################
9pload VISUALIZATION
10
6fb1a930 11vfont add [locate_data_file DejaVuSans.ttf] SansFont
12
a6eb515f 13vinit
2ec85268 14vpoint angle1P1 0 0 0
15vpoint angle1P2 50 50 50
16vpoint angle1P3 50 50 100
17vdimension dim1 -angle -shapes angle1P1 angle1P2 angle1P3 -font SansFont
a6eb515f 18vfit
19vmoveto 249 206
20
21set x_coord 249
22set y_coord 200
23
24checkcolor $x_coord $y_coord 0 1 1
25
26if { $stat != 1 } {
27 puts "Error : Highlighting of angle dimension with 2d text is wrong."
28}
d7bffd44 29vinit Viewer2/View2
2ec85268 30vpoint angle2P1 0 0 0
31vpoint angle2P2 50 50 50
32vpoint angle2P3 50 50 100
33vdimension dim2 -angle -text 3d -shapes angle2P1 angle2P2 angle2P3 -font SansFont
a6eb515f 34vfit
35vmoveto 263 251
36
d7bffd44 37set x_coord 335
38set y_coord 319
a6eb515f 39
40checkcolor $x_coord $y_coord 0 1 1
41
42if { $stat != 1 } {
43 puts "Error : Highlighting of angle dimension with 3d text is wrong."
44}
45
5747059b 46checkview -screenshot -3d -path ${imagedir}/${test_image}.png