1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00
occt/tests/bugs/modalg_1/buc60899_1
ifv 7c4e9501b4 0023981: Wrong section curves
Test case for issue CR23981
Small correction of test case for issue CR23981
2013-10-03 16:14:55 +04:00

49 lines
897 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
set length 110.093
set 2dviewer 0
# checksection res
# checkshape res