0024412: TKV3d, Dimensions - Possibility to customize text position was lost:
[occt.git] / tests / bugs / vis / bug24412_2
CommitLineData
af203d54 1puts "============"
2puts "CR24412"
3puts "============"
4puts ""
5#######################################################################
6# TKV3d, Dimensions - Possibility to customize text position was lost
7# Test position setting for angular dimension
8#######################################################################
9pload ALL
10
11set anImage1 $imagedir/${casename}_1.png
12set anImage2 $imagedir/${casename}_2.png
13
14vinit Viewer1/View1
15vpoint ang_p1 0 0 30
16vpoint ang_p2 30 0 0
17vpoint ang_p3 60 0 30
18vdimension angle name=ang ang_p1 ang_p2 ang_p3
19vdisplay ang
20vmovedim ang 5 0 5
21vfit
22
23# Check that text position was changed and the text is not aligned
24set x_coord 60
25set y_coord 189
26checkcolor $x_coord $y_coord 0.46 0.9 0
27if { $stat != 1 } {
28 puts "Error : Text position of dimension is incorrect."
29}
30
31vdump $anImage1
32
33
34# Update dimension parameters and set automatic text positioning
35vdimparam ang flyout=-5
36vfit
37
38# Check that text position was changed according to flyout
39set x_coord 206
40set y_coord 312
41checkcolor $x_coord $y_coord 0.46 0.9 0
42if { $stat != 1 } {
43 puts "Error : Text position of dimension after layout changing is incorrect."
44}
45
46vdump $anImage2