mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-06 18:26:22 +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:
parent
b32425859a
commit
eb2be8bb46
@ -3617,6 +3617,10 @@ void ShapeUpgrade_UnifySameDomain::IntUnifyFaces(const TopoDS_Shape& theInpShape
|
|||||||
|
|
||||||
ReconstructMissedSeam (RemovedEdges, F_RefFace, CurEdge, CurVertex, CurPoint,
|
ReconstructMissedSeam (RemovedEdges, F_RefFace, CurEdge, CurVertex, CurPoint,
|
||||||
Uperiod, Vperiod, NextEdge, NextPoint);
|
Uperiod, Vperiod, NextEdge, NextPoint);
|
||||||
|
if (NextEdge.IsNull())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return;
|
return;
|
||||||
|
19
tests/bugs/heal/bug33421
Normal file
19
tests/bugs/heal/bug33421
Normal 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
|
Loading…
x
Reference in New Issue
Block a user