1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0033421: Modeling Algorithms - ShapeUpgrade_UnifySameDomain throws exception

In method ShapeUpgrade_UnifySameDomain::IntUnifyFaces() the searched edge is finally checked that it is not empty before accessing it.
This commit is contained in:
akaftasev
2023-08-01 13:10:47 +01:00
committed by jfa
parent 55941d62d3
commit 4b94dcd0dd
2 changed files with 23 additions and 0 deletions

View File

@@ -3535,6 +3535,10 @@ void ShapeUpgrade_UnifySameDomain::IntUnifyFaces(const TopoDS_Shape& theInpShape
ReconstructMissedSeam (RemovedEdges, F_RefFace, CurEdge, CurVertex, CurPoint,
Uperiod, Vperiod, NextEdge, NextPoint);
if (NextEdge.IsNull())
{
return;
}
}
else
return;

19
tests/bugs/heal/bug33421 Normal file
View File

@@ -0,0 +1,19 @@
puts "TODO CR33439 ALL: Error : is WRONG because number of EDGE entities in shape"
puts "TODO CR33439 ALL: Error : is WRONG because number of WIRE entities in shape"
puts "TODO CR33439 ALL: Error : is WRONG because number of FACE entities in shape"
puts "========================================="
puts "0033421: Modeling Algorithms - ShapeUpgrade_UnifySameDomain fails"
puts "========================================="
puts ""
pcylinder c1 10 10
copy c1 c2
tmirror c2 0 0 10 0 0 1
bop c1 c2
bopfuse c3
unifysamedom result c3
checknbshapes result -t -solid 1 -shell 1 -face 3 -wire 3 -edge 3 -vertex 3
checkview -display result -2d -path ${imagedir}/${test_image}.png