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
ski 58cf74e0c0 0025945: Make stable checking of shape global properties in tests
- Added function checkprops, set default tolerance parameter to 1.0e-4
- Using "area" instead of "square".
- Options "-equal\notequal" isn't used together with "-s" in blend and offset test cases.
- Correct regressions/differences/improvements and CPU problem (set props tolerance to 0.1)
- Corrected test cases to use checkprops proc.
- Correct image difference
- Updated TODOs in test cases.
- Updated test cases to get correct images of result shape
2015-12-10 16:56:03 +03:00

51 lines
946 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
set 2dviewer 0
# checksection res
# checkshape res