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_6/bug28491
nbv 370101f340 0028491: Incomplete section curve
The main idea of the fix is to forbid check if intersection curve lies in the some face (with input tolerance) if we have 2D-intersection curve on this face (we consider that necessary tolerance has been computed in intersection algorithm honestly). If we do not have 2D-curve on this face then we need check as before.

New algorithm is implemented in IntTools_Context::IsValidBlockForFaces(...) method.

------
src\Extrema\Extrema_GenExtPS.cxx
No principled changes have been made.
2017-03-03 16:11:27 +03:00

27 lines
525 B
Plaintext

puts "========"
puts "OCC28491"
puts "========"
puts ""
##########################################
## Incomplete section curve
##########################################
set GoodLength 4.617
restore [locate_data_file bug28491_H0.brep] h0
restore [locate_data_file bug28491_Prism.brep] s1
explode h0 f
bsection r1 h0_57 s1
bsection result h0_57 s1 -n2d2
checkprops r1 -l $GoodLength
checkprops result -l $GoodLength
smallview
don h0_57
fit
display result s1
checkview -screenshot -2d -path ${imagedir}/${test_image}.png