1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00
occt/tests/bugs/vis/bug24133_3
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

47 lines
939 B
Plaintext

puts "============"
puts "CR24133"
puts "============"
puts ""
#######################################################################
# Development of improvement of dimensions implementation
# Radius dimension
#######################################################################
pload VISUALIZATION
vinit
vpoint radP1 0 0 0
vpoint radP2 50 50 0
vpoint radP3 100 0 0
vcircle circle radP1 radP2 radP3 0
verase radP1 radP2 radP3
vdim -radius -name=dim3 circle
vdisplay dim3
vfit
vmoveto 102 144
set x_coord 172
set y_coord 186
checkcolor $x_coord $y_coord 0 1 1
if { $stat != 1 } {
puts "Error : Highlighting of radius dimension with 2d text is wrong."
}
verase dim3
vdim -radius -name=dim3 -text=3d circle
vdisplay dim3
vfit
vmoveto 102 144
set x_coord 172
set y_coord 186
checkcolor $x_coord $y_coord 0 1 1
if { $stat != 1 } {
puts "Error : Highlighting of radius dimension with 3d text is wrong."
}
set only_screen 1