mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-07-20 12:45:50 +03:00
- 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"
45 lines
964 B
Plaintext
45 lines
964 B
Plaintext
puts "============"
|
|
puts "CR24133"
|
|
puts "============"
|
|
puts ""
|
|
#######################################################################
|
|
# Development of improvement of dimensions implementation
|
|
# Angle dimension
|
|
#######################################################################
|
|
pload VISUALIZATION
|
|
|
|
vinit
|
|
vpoint angleP1 0 0 0
|
|
vpoint angleP2 50 50 50
|
|
vpoint angleP3 50 50 100
|
|
vdimension angle name=dim1 angleP1 angleP2 angleP3
|
|
vdisplay dim1
|
|
vfit
|
|
vmoveto 249 206
|
|
|
|
set x_coord 249
|
|
set y_coord 200
|
|
|
|
checkcolor $x_coord $y_coord 0 1 1
|
|
|
|
if { $stat != 1 } {
|
|
puts "Error : Highlighting of angle dimension with 2d text is wrong."
|
|
}
|
|
vinit Viewer2/View2
|
|
vdisplay angleP1 angleP2 angleP3
|
|
vdimension angle name=dim2 text=3d angleP1 angleP2 angleP3
|
|
vdisplay dim2
|
|
vfit
|
|
vmoveto 263 251
|
|
|
|
set x_coord 335
|
|
set y_coord 319
|
|
|
|
checkcolor $x_coord $y_coord 0 1 1
|
|
|
|
if { $stat != 1 } {
|
|
puts "Error : Highlighting of angle dimension with 3d text is wrong."
|
|
}
|
|
|
|
set only_screen 1
|