1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/modalg_1/buc60899_1
ski 5747059b21 0026833: Create command checkview containing all viewer types
Created command checkview for displaying shapes.
2016-02-05 11:14:37 +03:00

51 lines
997 B
Plaintext
Executable File

puts "============"
puts "BUC60899"
puts "============"
puts ""
#####################################################
## Execution of the script prism_sec.tcl gives exception "NumericError".
#####################################################
set n 2
set dx 4
set sx 1
set sz 10
set xc [dval (2*$dx+2*$sx)*$n/2]
set zc -30
set r [dval $xc*0.9]
set x 0
set y -50
set z 0
set pol "polyline w $x $y $z"
for {set i 1} {$i <= $n} {incr i} {
set x [dval $x+$dx]
set pol "$pol $x $y $z"
set x [dval $x+$sx]
set z [dval $z+$sz]
set pol "$pol $x $y $z"
set x [dval $x+$dx]
set pol "$pol $x $y $z"
set x [dval $x+$sx]
set z [dval $z-$sz]
set pol "$pol $x $y $z"
}
eval $pol
circle c $xc 0 $zc $r
mkedge c c
prism cyl c 0 0 -$zc*2 inf
prism crg w 0 -$y*2 0 inf
bsection result crg cyl
checkprops result -l 110.093
checkshape result
checksection result
checkview -display result -2d -path ${imagedir}/${test_image}.png
# checksection res
# checkshape res