edb7bd79182141ed0bf0756ede94e4dd1983db46
[occt.git] / tests / bugs / vis / bug24133_4
1 puts "============"
2 puts "CR24133"
3 puts "============"
4 puts ""
5 #######################################################################
6 #  Development of improvement of dimensions implementation
7 #  Diameter dimension
8 #######################################################################
9 pload VISUALIZATION
10
11 vinit
12 vpoint diamP1 0 0 0
13 vpoint diamP2 50 50 0
14 vpoint diamP3 100 0 0
15 vcircle circle diamP1 diamP2 diamP3 0
16 verase diamP1 diamP2 diamP3
17 vdim -diam -name=dim4 circle
18 vdisplay dim4
19 vfit
20 vmoveto 208 205
21
22 set x_coord 296
23 set y_coord 257
24
25 checkcolor $x_coord $y_coord 0 1 1
26
27 if { $stat != 1 } {
28    puts "Error : Highlighting of diameter dimension with 2d text is wrong."
29 }
30
31 verase dim4
32 vdim -diam -name=dim4 -text=3d circle
33 vdisplay dim4
34 vfit
35 vmoveto 208 205
36
37 set x_coord 296
38 set y_coord 257
39
40 checkcolor $x_coord $y_coord 0 1 1
41
42 if { $stat != 1 } {
43    puts "Error : Highlighting of diameter dimension with 3d text is wrong."
44 }
45
46 set only_screen 1