From: mpv Date: Wed, 19 Sep 2018 07:22:58 +0000 (+0300) Subject: Fix for #2579, note 7: X-Git-Tag: V9_2_0a1~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8480214ecbc6cf3d0941ed96168cb591eb218a91;p=modules%2Fshaper.git Fix for #2579, note 7: initially, nb=10 and the resulting geometry is correct. Modifying nb to 5 is also producing a correct result. But increasing again nb (to 8) is delivering an incorrect geometry --- diff --git a/src/Model/Model_ResultBody.cpp b/src/Model/Model_ResultBody.cpp index 514b0406d..9b3401290 100644 --- a/src/Model/Model_ResultBody.cpp +++ b/src/Model/Model_ResultBody.cpp @@ -229,6 +229,10 @@ void Model_ResultBody::updateSubs(const std::shared_ptr& theThisS aSub = anObjects->createBody(this->data(), aSubIndex); mySubs.push_back(aSub); mySubsMap[aSub] = int(mySubs.size() - 1); + if (isConcealed()) { // for issue #2579 note7 + aSub->ModelAPI_ResultBody::setIsConcealed(true); + std::dynamic_pointer_cast(aSub)->updateConcealment(); + } } else { // just update shape of this result aSub = mySubs[aSubIndex]; }