Salome HOME
Result CompSolid should inherits ResultBody. All model realization concerned Naming...
[modules/shaper.git] / src / Model / Model_ResultBody.cpp
index 8cecd4a92d837d8ed336dba3218e673456270b35..cb285aafdb182f4437ee99b790ceb29d94e17a19 100644 (file)
@@ -5,9 +5,11 @@
 // Author:      Mikhail PONIKAROV
 
 #include <Model_ResultBody.h>
+#include <Model_BodyBuilder.h>
 #include <Model_Data.h>
 #include <Model_Document.h>
 #include <ModelAPI_AttributeIntArray.h>
+
 #include <TNaming_Builder.hxx>
 #include <TNaming_NamedShape.hxx>
 #include <TNaming_Iterator.hxx>
@@ -32,6 +34,7 @@
 #include <BRep_Tool.hxx>
 #include <GeomAPI_Shape.h>
 #include <GeomAlgoAPI_MakeShape.h>
+
 #include <Config_PropManager.h>
 // DEB
 //#include <TCollection_AsciiString.hxx>
@@ -40,6 +43,8 @@
 
 Model_ResultBody::Model_ResultBody()
 {
+  myBuilder = new Model_BodyBuilder(this);
+
   myIsDisabled = true; // by default it is not initialized and false to be after created
   setIsConcealed(false);
 }
@@ -123,6 +128,7 @@ bool Model_ResultBody::setDisabled(std::shared_ptr<ModelAPI_Result> theThis, con
   return aChanged;
 }
 
+/*
 void Model_ResultBody::store(const std::shared_ptr<GeomAPI_Shape>& theShape)
 {
   std::shared_ptr<Model_Data> aData = std::dynamic_pointer_cast<Model_Data>(data());
@@ -232,7 +238,7 @@ void Model_ResultBody::storeModified(const std::shared_ptr<GeomAPI_Shape>& theOl
     }
   }
 }
-
+*/
 std::shared_ptr<GeomAPI_Shape> Model_ResultBody::shape()
 {
   std::shared_ptr<Model_Data> aData = std::dynamic_pointer_cast<Model_Data>(data());
@@ -250,7 +256,7 @@ std::shared_ptr<GeomAPI_Shape> Model_ResultBody::shape()
   }
   return std::shared_ptr<GeomAPI_Shape>();
 }
-
+/*
 void Model_ResultBody::clean()
 {
   std::vector<TNaming_Builder*>::iterator aBuilder = myBuilders.begin();
@@ -674,7 +680,7 @@ void Model_ResultBody::loadDisconnectedEdges(
   #endif
   theTag++;
   }
-  */
+  *+/
   TopTools_MapOfShape anEdgesToDelete;
   TopExp_Explorer anEx(aShape,TopAbs_EDGE); 
   std::string aName;
@@ -761,3 +767,4 @@ void Model_ResultBody::loadDisconnectedVertexes(std::shared_ptr<GeomAPI_Shape> t
     }
   }
 }
+*/
\ No newline at end of file