1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-16 10:54:53 +03:00
occt/tests/bugs/modalg/buc60899_1
apn 352ffd7358 Adding test cases for chl grid
Test case tests/bugs/modalg/dxf906 was renamed to bug889
Adding test cases to tests/bugs/moddata
Modified expressions puts [checkshape result]. Added command vzfit in end file in folder bugs. Unlocked command coordload in QABugs_3.cxx
Modified test case bugs vis buc60738
Added test cases to modalg and moddata
Added test cases to caf and fclasses
Added test cases to group heal
2012-12-21 16:39:38 +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 15.1392
set 2dviewer 0
# checksection res
# checkshape res