1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-07-20 12:45:50 +03:00
occt/tests/bugs/vis/bug24133_4
apl 1d7ca641c7 0024351: Test cases for AIS dimension presentations to check arrow orientation, text position
- Added test cases to check label and arrows positioning of AIS length, angle, radius, diameter dimensions;
- Added new arguments to "vdim" command to modify "flyout", "arrow orientation", "label position" properties;
- Corrected bug: duplication of text label of linear dimensions for the horizontal-centered text.
- Rename and revise argument interface of "vdimension" (vdim) command.
- Correct test cases for new command name and arguments style.

corrected test cases - check with testdiff instead of "checkcolor"
2013-11-21 17:30:40 +04:00

48 lines
989 B
Plaintext

puts "============"
puts "CR24133"
puts "============"
puts ""
#######################################################################
# Development of improvement of dimensions implementation
# Diameter dimension
#######################################################################
pload VISUALIZATION
vinit
vpoint diamP1 0 0 0
vpoint diamP2 50 50 0
vpoint diamP3 100 0 0
vcircle circle diamP1 diamP2 diamP3 0
verase diamP1 diamP2 diamP3
vdimension diameter name=dim1 circle
vdisplay dim1
vfit
vmoveto 208 205
set x_coord 296
set y_coord 257
checkcolor $x_coord $y_coord 0 1 1
if { $stat != 1 } {
puts "Error : Highlighting of diameter dimension with 2d text is wrong."
}
vinit Viewer2/View2
vdisplay circle
vdimension diameter name=dim2 text=3d circle
vdisplay dim2
vfit
vmoveto 208 205
set x_coord 296
set y_coord 257
checkcolor $x_coord $y_coord 0 1 1
if { $stat != 1 } {
puts "Error : Highlighting of diameter dimension with 3d text is wrong."
}
set only_screen 1