X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_ResultConstruction.cpp;h=e614fd89ca4f73ece682dcf6ff20d9cdb039bf80;hb=2c5d9762904d572995855e2ce2239ea0c3463eb5;hp=17b20df98dc4eff497b1eb03ed3bfbbbbaf72e09;hpb=c0d601caf98a080b0276f8cb29def42adb6d2306;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultConstruction.cpp b/src/Model/Model_ResultConstruction.cpp index 17b20df98..e614fd89c 100644 --- a/src/Model/Model_ResultConstruction.cpp +++ b/src/Model/Model_ResultConstruction.cpp @@ -15,7 +15,7 @@ void Model_ResultConstruction::initAttributes() { // append the color attribute. It is empty, the attribute will be filled by a request DataPtr aData = data(); - aData->addAttribute(COLOR_ID(), ModelAPI_AttributeIntArray::type()); + aData->addAttribute(COLOR_ID(), ModelAPI_AttributeIntArray::typeId()); } void Model_ResultConstruction::colorConfigInfo(std::string& theSection, std::string& theName, @@ -28,9 +28,9 @@ void Model_ResultConstruction::colorConfigInfo(std::string& theSection, std::str void Model_ResultConstruction::setShape(std::shared_ptr theShape) { - if (myShape != theShape) { + if (myShape != theShape && (!theShape.get() || !theShape->isEqual(myShape))) { myShape = theShape; - if (theShape.get() && (!myShape.get() || !theShape->isEqual(myShape))) { + if (theShape.get()) { myFacesUpToDate = false; myFaces.clear(); } @@ -61,7 +61,7 @@ int Model_ResultConstruction::facesNum() std::dynamic_pointer_cast(myShape); std::list > aFaces; GeomAlgoAPI_SketchBuilder::createFaces(aWirePtr->origin(), aWirePtr->dirX(), - aWirePtr->dirY(), aWirePtr->norm(), aWirePtr, aFaces); + aWirePtr->norm(), aWirePtr, aFaces); std::list >::iterator aFIter = aFaces.begin(); for(; aFIter != aFaces.end(); aFIter++) { std::shared_ptr aFace(new GeomAPI_Face(*aFIter));