Corrected for IPAL13224.

This commit is contained in:
skl 2006-08-29 12:07:54 +00:00
parent 4b73bc1846
commit 87e19c8d66

View File

@ -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();