From: skl Date: Tue, 29 Aug 2006 12:07:54 +0000 (+0000) Subject: Corrected for IPAL13224. X-Git-Tag: V3_2_2pre~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=87e19c8d66e0b21418678d8cbfb54b12d0787bea;p=modules%2Fgeom.git Corrected for IPAL13224. --- diff --git a/src/ShHealOper/ShHealOper_ChangeOrientation.cxx b/src/ShHealOper/ShHealOper_ChangeOrientation.cxx index 0bd3c9780..92912fa85 100644 --- a/src/ShHealOper/ShHealOper_ChangeOrientation.cxx +++ b/src/ShHealOper/ShHealOper_ChangeOrientation.cxx @@ -55,8 +55,8 @@ void ShHealOper_ChangeOrientation::Init(const TopoDS_Shape& theShape) Standard_Boolean ShHealOper_ChangeOrientation::Perform() { + BRep_Builder B; if (myInitShape.ShapeType() == TopAbs_SHELL) { - BRep_Builder B; myResultShape = myInitShape.EmptyCopied(); TopoDS_Iterator itr(myInitShape); while (itr.More()) { @@ -65,7 +65,13 @@ Standard_Boolean ShHealOper_ChangeOrientation::Perform() } } else if (myInitShape.ShapeType() == TopAbs_FACE) { - myResultShape = myInitShape.Reversed(); + myResultShape = myInitShape.EmptyCopied(); + TopoDS_Iterator itr(myInitShape); + while (itr.More()) { + B.Add(myResultShape,itr.Value()); + itr.Next(); + } + myResultShape.Reverse(); } else if (myInitShape.ShapeType() == TopAbs_WIRE) { myResultShape = myInitShape.Reversed();