From 87e19c8d66e0b21418678d8cbfb54b12d0787bea Mon Sep 17 00:00:00 2001 From: skl Date: Tue, 29 Aug 2006 12:07:54 +0000 Subject: [PATCH] Corrected for IPAL13224. --- src/ShHealOper/ShHealOper_ChangeOrientation.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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();