1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00
Files
occt/tests/bugs/vis/bug24133_2
aba a6eb515f9d 0024133: Development of improvement of dimensions implementation; new length, radius,diameter and angle dimensions.
Some corrections; test cases were added; coding standards in MFC samples & presentations
Request stencil buffer for Linux.
correct test cases; correct compilation errors
compilation warnings (gcc/Linux)
2013-10-31 18:02:17 +04:00

44 lines
916 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
vdim -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."
}
verase dim1
vdim -angle -name=dim2 -text=3d angleP1 angleP2 angleP3
vdisplay dim2
vfit
vmoveto 263 251
set x_coord 332
set y_coord 326
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