]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Correct edges naming generation for FILL of two edges (with divided edges in result)
authormpv <mpv@opencascade.com>
Tue, 12 Dec 2017 08:48:24 +0000 (11:48 +0300)
committermpv <mpv@opencascade.com>
Tue, 12 Dec 2017 08:48:24 +0000 (11:48 +0300)
src/Model/Model_BodyBuilder.cpp

index c25d5dfa538c52cf1fa493bc27fa6db2956e46ed..7807464e6133edcbd080c549be90f898d68abfe2 100755 (executable)
@@ -408,7 +408,8 @@ void Model_BodyBuilder::loadAndOrientModifiedShapes (
       }
       GeomShapePtr aGeomNewShape(new GeomAPI_Shape());
       aGeomNewShape->setImpl(new TopoDS_Shape(aNewShape));
-      if(!aRoot.IsSame(aNewShape) && aResultShape->isSubShape(aGeomNewShape, false)) {
+      if(!aRoot.IsSame(aNewShape) && aResultShape->isSubShape(aGeomNewShape, false) &&
+         !aResultShape->isSame(*anIt)) { // to avoid put of same shape on main label and sub
         int aBuilderTag = aTag;
         if (!theIsStoreSeparate)
           aSameParentShapes++;