0030942: Draw Harness, ViewerTest - command vdefaults should abort script on unknown...
[occt.git] / tests / bugs / vis / bug24133_1
1 puts "============"
2 puts "CR24133"
3 puts "============"
4 puts ""
5 #######################################################################
6 #  Development of improvement of dimensions implementation
7 #  Length dimension
8 #######################################################################
9 pload VISUALIZATION
10
11 vfont add [locate_data_file DejaVuSans.ttf] SansFont
12
13 vinit
14 vpoint lengthP1 0 0 0
15 vpoint lengthP2 50 50 50
16 vdimension dim1 -length -plane xoy -shapes lengthP1 lengthP2 -font SansFont
17 vfit
18 vmoveto 82 254
19
20 set x_coord 362
21 set y_coord 102
22 checkcolor $x_coord $y_coord 0 1 1
23 if { $stat != 1 } {
24    puts "Error : Highlighting of length dimension is wrong."
25 }
26
27 checkview -screenshot -3d -path ${imagedir}/${test_image}.png