mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +03:00
0028849: [Regression to 7.1.0] Exception in Boolean operation
The reason of exception has been eliminated.
This commit is contained in:
@@ -3212,7 +3212,7 @@ static IntPatch_ImpImpIntersection::IntStatus
|
|||||||
Standard_Boolean isChanged = Standard_False;
|
Standard_Boolean isChanged = Standard_False;
|
||||||
for (Standard_Integer i = 0; i < aNbWLines; i++)
|
for (Standard_Integer i = 0; i < aNbWLines; i++)
|
||||||
{
|
{
|
||||||
if (aWLFindStatus[i] == WLFStatus_Absent)
|
if ((aWLFindStatus[i] == WLFStatus_Absent) || (aWLine[i]->NbPnts() == 0))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
Standard_Real aU1c = 0.0, aV1c = 0.0;
|
Standard_Real aU1c = 0.0, aV1c = 0.0;
|
||||||
|
28
tests/bugs/modalg_7/bug28849
Normal file
28
tests/bugs/modalg_7/bug28849
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
puts "======="
|
||||||
|
puts "OCC28849"
|
||||||
|
puts "======="
|
||||||
|
puts ""
|
||||||
|
##################################################
|
||||||
|
# [Regression to 7.1.0] Exception in Boolean operation
|
||||||
|
##################################################
|
||||||
|
|
||||||
|
restore [locate_data_file bug28849_shape1.brep] s1
|
||||||
|
restore [locate_data_file bug28849_shape2.brep] s2
|
||||||
|
|
||||||
|
bsection result s1 s2
|
||||||
|
|
||||||
|
regexp {nb alone Vertices : ([-0-9.+eE]+)} [checksection result] full nbv
|
||||||
|
|
||||||
|
if { $nbv != 2 } {
|
||||||
|
puts "Error : Section is incorrect"
|
||||||
|
} else {
|
||||||
|
puts "Section is correct"
|
||||||
|
}
|
||||||
|
|
||||||
|
checkprops result -l 5.40612
|
||||||
|
|
||||||
|
smallview
|
||||||
|
don result
|
||||||
|
fit
|
||||||
|
|
||||||
|
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
|
Reference in New Issue
Block a user