mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 01:58:36 +05:00
Corrected for IPAL13224.
This commit is contained in:
parent
4b73bc1846
commit
87e19c8d66
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user