From 8480214ecbc6cf3d0941ed96168cb591eb218a91 Mon Sep 17 00:00:00 2001 From: mpv Date: Wed, 19 Sep 2018 10:22:58 +0300 Subject: [PATCH] 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 --- src/Model/Model_ResultBody.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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]; } -- 2.39.2