X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_ResultConstruction.cpp;h=443c9ce9f24316fbef0b2f1d9c924866f5061d82;hb=4fc2dc9fdc0c14fab5f2780598eccdc1368d81b9;hp=41e1a9b166a43771fac03ba55775eae2b17f9c5c;hpb=5dfebcc3a72f75f043de9880419b39f073af6819;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultConstruction.cpp b/src/Model/Model_ResultConstruction.cpp index 41e1a9b16..443c9ce9f 100644 --- a/src/Model/Model_ResultConstruction.cpp +++ b/src/Model/Model_ResultConstruction.cpp @@ -44,11 +44,9 @@ std::shared_ptr Model_ResultConstruction::shape() Model_ResultConstruction::Model_ResultConstruction() { - myIsDisabled = true; // by default it is not initialized and false to be after created myIsInHistory = true; myIsInfinite = false; myFacesUpToDate = false; - setIsConcealed(false); } void Model_ResultConstruction::setIsInHistory(const bool isInHistory) @@ -68,7 +66,7 @@ int Model_ResultConstruction::facesNum() std::list >::iterator aFIter = aFaces.begin(); for(; aFIter != aFaces.end(); aFIter++) { std::shared_ptr aFace(new GeomAPI_Face(*aFIter)); - if (aFace.get()) + if (aFace.get() && !aFace->isNull()) myFaces.push_back(aFace); } } @@ -91,3 +89,8 @@ void Model_ResultConstruction::setInfinite(const bool theInfinite) { myIsInfinite = theInfinite; } + +void Model_ResultConstruction::setIsConcealed(const bool theValue) +{ + // do nothing: the construction element is never consealed +}