From: mpv Date: Tue, 12 Dec 2017 08:48:24 +0000 (+0300) Subject: Correct edges naming generation for FILL of two edges (with divided edges in result) X-Git-Tag: V_2.10.0RC~59 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=20bdd37cef0c597045348ab212ddc9d625f41ddc;p=modules%2Fshaper.git Correct edges naming generation for FILL of two edges (with divided edges in result) --- diff --git a/src/Model/Model_BodyBuilder.cpp b/src/Model/Model_BodyBuilder.cpp index c25d5dfa5..7807464e6 100755 --- a/src/Model/Model_BodyBuilder.cpp +++ b/src/Model/Model_BodyBuilder.cpp @@ -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++;