]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1191 ExtrusionCut on compound works wrong: Temporary modification to provide...
authornds <nds@opencascade.com>
Sat, 26 Dec 2015 16:56:41 +0000 (19:56 +0300)
committernds <nds@opencascade.com>
Sat, 26 Dec 2015 16:56:41 +0000 (19:56 +0300)
src/Model/Model_BodyBuilder.cpp

index eeb1edf6f3af64518c4d921e41e6514ffd207b97..9d560ba23e14b9e22eb86ccd8afc8b9ebff8b071 100755 (executable)
@@ -124,7 +124,7 @@ void Model_BodyBuilder::store(const std::shared_ptr<GeomAPI_Shape>& theShape,
     if (aShape.IsNull())
       return;  // null shape inside
 
-    if(!theIsStoreSameShapes) {
+    /*if(!theIsStoreSameShapes) {
       Handle(TNaming_NamedShape) aNS = TNaming_Tool::NamedShape(aShape, aShapeLab);
       if(!aNS.IsNull() && !aNS->IsEmpty()) {
         // This shape is already in document, store reference instead of shape;
@@ -132,7 +132,7 @@ void Model_BodyBuilder::store(const std::shared_ptr<GeomAPI_Shape>& theShape,
         TDF_Reference::Set(aShapeLab, aFoundLabel);
         return;
       }
-    }
+    }*/
 
     aBuilder.Generated(aShape);        
     // register name
@@ -214,12 +214,12 @@ void Model_BodyBuilder::storeModified(const std::shared_ptr<GeomAPI_Shape>& theO
 
       TopoDS_Iterator aSubIter(aShapeNew);
       for(int aTag = theDecomposeSolidsTag; aSubIter.More(); aSubIter.Next()) {
-        const TopoDS_Shape& aShape = aSubIter.Value();
+        /*const TopoDS_Shape& aShape = aSubIter.Value();
         Handle(TNaming_NamedShape) aNS = TNaming_Tool::NamedShape(aShape, aShapeLab);
         if(!aNS.IsNull() && !aNS->IsEmpty()) {
           // This shape is already in document, don't add it.
           continue;
-        }
+        }*/
         TNaming_Builder aSubBuilder(aShapeLab.FindChild(aTag++));
         aSubBuilder.Generated(aSubIter.Value());
         if(!aName.IsEmpty()) {
@@ -781,10 +781,10 @@ std::shared_ptr<GeomAPI_Shape> Model_BodyBuilder::shape()
   std::shared_ptr<Model_Data> aData = std::dynamic_pointer_cast<Model_Data>(data());
   if (aData) {
     TDF_Label aShapeLab = aData->shapeLab();
-    Handle(TDF_Reference) aRef;
+    /*Handle(TDF_Reference) aRef;
     if (aShapeLab.FindAttribute(TDF_Reference::GetID(), aRef)) {
       aShapeLab = aRef->Get();
-    }
+    }*/
     Handle(TNaming_NamedShape) aName;
     if (aShapeLab.FindAttribute(TNaming_NamedShape::GetID(), aName)) {
       TopoDS_Shape aShape = aName->Get();