]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Make workplane and its parameters external
authorazv <azv@opencascade.com>
Thu, 24 Sep 2015 06:29:00 +0000 (09:29 +0300)
committerazv <azv@opencascade.com>
Thu, 24 Sep 2015 07:20:32 +0000 (10:20 +0300)
src/SketchSolver/SketchSolver_Group.cpp
src/SketchSolver/SketchSolver_Solver.h

index cc60f0c2555e6479934dcbb1b65086b31313bbbf..aeac2ebeacc2d7286401fbac431041008b5769d2 100644 (file)
@@ -76,7 +76,7 @@ private:
   static Slvs_hGroup myGroupIndex; ///< index of the group
 };
 
-Slvs_hGroup GroupIndexer::myGroupIndex = 0;
+Slvs_hGroup GroupIndexer::myGroupIndex = SLVS_G_OUTOFGROUP;
 
 
 static void sendMessage(const char* theMessageName)
@@ -500,13 +500,13 @@ bool SketchSolver_Group::updateWorkplane()
     std::vector<Slvs_Param>::iterator aParIter = aParams.begin();
     for (; aParIter != aParams.end(); aParIter++) {
       aParIter->h = SLVS_E_UNKNOWN; // the ID should be generated by storage
-      aParIter->group = myID;
+      aParIter->group = SLVS_G_OUTOFGROUP;
       aParIter->h = myStorage->addParameter(*aParIter);
     }
     std::vector<Slvs_Entity>::iterator anEntIter = anEntities.begin();
     for (; anEntIter != anEntities.end(); anEntIter++) {
       anEntIter->h = SLVS_E_UNKNOWN; // the ID should be generated by storage
-      anEntIter->group = myID;
+      anEntIter->group = SLVS_G_OUTOFGROUP;
       anEntIter->wrkpl = myWorkplaneID;
       for (int i = 0; i < 4; i++)
         if (anEntIter->param[i] != SLVS_E_UNKNOWN)
index f90d71fd2f816d3f66f38e41585137e8324eb645..52ac18f98d44e05ba3e4f83a54ac8ee7b1ca64f5 100644 (file)
@@ -34,6 +34,8 @@ typedef unsigned int UINT32;
 #define SLVS_E_UNKNOWN 0
 // Unknown group
 #define SLVS_G_UNKNOWN 0
+// Group ID to store external objects
+#define SLVS_G_OUTOFGROUP 1
 
 /**
  * The main class that performs the high-level operations for connection to the SolveSpace.