]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for #2579, note 7:
authormpv <mpv@opencascade.com>
Wed, 19 Sep 2018 07:22:58 +0000 (10:22 +0300)
committermpv <mpv@opencascade.com>
Wed, 19 Sep 2018 07:22:58 +0000 (10:22 +0300)
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

index 514b0406d1083a2fd01196424e5e62167dd4b3e7..9b3401290035a5711ffe328a4c91bb532f270801 100644 (file)
@@ -229,6 +229,10 @@ void Model_ResultBody::updateSubs(const std::shared_ptr<GeomAPI_Shape>& 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<Model_ResultBody>(aSub)->updateConcealment();
+        }
       } else { // just update shape of this result
         aSub = mySubs[aSubIndex];
       }