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

0007570: Exception in ShapeFix_Wireframe::FixSmallEdges

Exception fixed by checking if subshape removed completely.

Test-case for issue #7570
This commit is contained in:
pdn
2014-10-16 14:24:19 +04:00
committed by bugmaster
parent 256f9ac0ad
commit c60370656c
3 changed files with 45 additions and 5 deletions

View File

@@ -426,16 +426,21 @@ ShapeFix_Wireframe::ShapeFix_Wireframe(const TopoDS_Shape& shape)
TopoDS_Shape res;
if ( cont.IsBound ( shape1 ) )
{
res = cont.Find ( shape1 ).Oriented ( shape1.Orientation() );
res = cont.Find ( shape1 ).Oriented ( shape1.Orientation() );
}
else
{
myShape = shape1;
FixSmallEdges();
res = Shape();
cont.Bind(myShape,res);
myShape = shape1;
FixSmallEdges();
res = Shape();
cont.Bind(myShape,res);
}
if ( ! res.IsSame ( shape1 ) ) locModified = Standard_True;
//check if resulting shape if not empty
if( res.IsNull())
continue;
res.Location ( L );
B.Add ( C, res );