mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
Context usage extended in method ShapeFix_Wire::FixSelfIntersection() to avoid modification of original shape by shape healing. Added check for subshape modification in XSAlgo/XSAlgo_AlgoContainer::MergeTransferInfo(). Test cases are updated to the new behaviour. Test case for issue CR24658
22 lines
679 B
Plaintext
22 lines
679 B
Plaintext
puts "============"
|
|
puts "OCC24658"
|
|
puts "============"
|
|
puts ""
|
|
#######################################################################
|
|
## fixshape changes source shape
|
|
#######################################################################
|
|
|
|
restore [locate_data_file bug24658.brep] a
|
|
|
|
puts "\nBefore shape healing"
|
|
regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance a] full expected_MaxTolerance
|
|
|
|
fixshape af a
|
|
|
|
puts "\nAfter shape healing"
|
|
regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance a] full MaxTol
|
|
|
|
set tol_abs_MaxTolerance 1.0e-06
|
|
set tol_rel_MaxTolerance 1.0e-06
|
|
checkreal "MaxTolerance" ${MaxTol} ${expected_MaxTolerance} ${tol_abs_MaxTolerance} ${tol_rel_MaxTolerance}
|