mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
1. New testgrid "lowalgos/intss" has been created. It will contain all test cases on geometrical intersection of two surfaces ("intersect" DRAW-command) and two faces ("bopcurves" DRAW-command). 2. New test case for the issue #28493 has been created because the problem is not reproduced on MASTER. 3. Test case (lowalgos/intss/bug24472) for the issue #29501 has been modified in order to check loops of the resulting intersection curves.
46 lines
966 B
Plaintext
46 lines
966 B
Plaintext
puts "========="
|
|
puts "OCC23948"
|
|
puts "========="
|
|
puts ""
|
|
###########################################################
|
|
# Wrong intersection between a surface of revolution and a plane.
|
|
###########################################################
|
|
|
|
set MaxTol 1.0e-6
|
|
set NbCurv_OK 2
|
|
|
|
restore [locate_data_file bug22766_f1] f1
|
|
restore [locate_data_file bug22766_f2] f2
|
|
|
|
set log [bopcurves f1 f2 -2d]
|
|
|
|
regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv
|
|
|
|
if {${NbCurv} != ${NbCurv_OK}} {
|
|
puts "Error: ${NbCurv_OK} curve(s) expected, but ${NbCurv} found."
|
|
}
|
|
|
|
checkreal TolReached ${Toler} ${MaxTol} 0.0 0.1
|
|
|
|
bclearobjects
|
|
bcleartools
|
|
|
|
for { set i 1 } { $i <= $NbCurv } { incr i } {
|
|
mkedge ee c_$i
|
|
baddobjects ee
|
|
}
|
|
|
|
if { $NbCurv > 1 } {
|
|
bfillds
|
|
bbuild rs
|
|
checksection rs -r 2
|
|
checkmaxtol rs -ref $MaxTol
|
|
checkprops rs -l 111.803
|
|
}
|
|
|
|
smallview
|
|
don c_*
|
|
fit
|
|
disp f1 f2
|
|
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
|