0025235: Draw Harness - improve commands vdimension and vdimparam
[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
11vinit
12vpoint angleP1 0 0 0
13vpoint angleP2 50 50 50
14vpoint angleP3 50 50 100
0499eb06 15vdimension dim1 -angle -shapes angleP1 angleP2 angleP3
a6eb515f 16vfit
17vmoveto 249 206
18
19set x_coord 249
20set y_coord 200
21
22checkcolor $x_coord $y_coord 0 1 1
23
24if { $stat != 1 } {
25 puts "Error : Highlighting of angle dimension with 2d text is wrong."
26}
d7bffd44 27vinit Viewer2/View2
28vdisplay angleP1 angleP2 angleP3
0499eb06 29vdimension dim2 -angle -text 3d -shapes angleP1 angleP2 angleP3
a6eb515f 30vfit
31vmoveto 263 251
32
d7bffd44 33set x_coord 335
34set y_coord 319
a6eb515f 35
36checkcolor $x_coord $y_coord 0 1 1
37
38if { $stat != 1 } {
39 puts "Error : Highlighting of angle dimension with 3d text is wrong."
40}
41
42set only_screen 1