From c60370656c3ff59732159cf2b12be992de1ebad8 Mon Sep 17 00:00:00 2001 From: pdn Date: Thu, 16 Oct 2014 14:24:19 +0400 Subject: [PATCH] 0007570: Exception in ShapeFix_Wireframe::FixSmallEdges Exception fixed by checking if subshape removed completely. Test-case for issue #7570 --- src/QABugs/QABugs_19.cxx | 22 ++++++++++++++++++++++ src/ShapeFix/ShapeFix_Wireframe.cxx | 15 ++++++++++----- tests/bugs/heal/bug7570 | 13 +++++++++++++ 3 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 tests/bugs/heal/bug7570 diff --git a/src/QABugs/QABugs_19.cxx b/src/QABugs/QABugs_19.cxx index 54aa72baef..24dbedd943 100755 --- a/src/QABugs/QABugs_19.cxx +++ b/src/QABugs/QABugs_19.cxx @@ -2861,6 +2861,27 @@ static Standard_Integer OCC25202 ( Draw_Interpretor& theDI, return 0; } +#include +//======================================================================= +//function : OCC7570 +//purpose : +//======================================================================= +static Standard_Integer OCC7570 (Draw_Interpretor& di, Standard_Integer n, const char** a) +{ + if (n != 2) { + di<<"Usage: "<