Salome HOME
0020279: [CEA 334] control the "random" use when using mesh algorithms
authoreap <eap@opencascade.com>
Wed, 20 May 2009 15:46:33 +0000 (15:46 +0000)
committereap <eap@opencascade.com>
Wed, 20 May 2009 15:46:33 +0000 (15:46 +0000)
   Compare TNode's by node ID

src/StdMeshers/StdMeshers_Prism_3D.hxx

index 8fa469b765cb1a4dfe71f0772a137da042d7b51f..5c29f63ecce41c06f28bc0b09c0e7d669415e857 100644 (file)
@@ -84,7 +84,7 @@ struct TNode
   bool IsNeighbor( const TNode& other ) const;
 
   TNode(const SMDS_MeshNode* node = 0): myNode(node), myParams(-1,-1,-1) {}
-  bool operator < (const TNode& other) const { return myNode < other.myNode; }
+  bool operator < (const TNode& other) const { return myNode->GetID() < other.myNode->GetID(); }
 };
 
 // ===============================================================
@@ -242,9 +242,9 @@ private:
     TopoDS_Edge                     myBaseEdge;
     // first and last normalized params and orientaion for each component or it-self
     std::vector< std::pair< double, double> > myParams;
-    bool                                      myIsForward;
-    std::vector< TSideFace* >                 myComponents;
-    SMESH_MesherHelper *                      myHelper;
+    bool                            myIsForward;
+    std::vector< TSideFace* >       myComponents;
+    SMESH_MesherHelper *            myHelper;
   public:
     TSideFace( SMESH_MesherHelper* helper,
                const int           faceID,
@@ -358,7 +358,7 @@ private:
     myError = SMESH_ComputeError::New(error,comment);
     return myError->IsOK();
   }
-  //vector< SMESH_subMesh* >           mySubMeshesVec; // submesh by in-block id
+  //std::vector< SMESH_subMesh* >           mySubMeshesVec; // submesh by in-block id
 };
 
 // =============================================
@@ -429,12 +429,11 @@ private:
   StdMeshers_PrismAsBlock myBlock;
   SMESH_MesherHelper*     myHelper;
 
-  std::vector<gp_XYZ>            myShapeXYZ; // point on each sub-shape
+  std::vector<gp_XYZ>     myShapeXYZ; // point on each sub-shape
 
   // map of bottom nodes to the column of nodes above them
   // (the column includes the bottom node)
-  typedef std::map< TNode, TNodeColumn > TNode2ColumnMap;
-  TNode2ColumnMap  myBotToColumnMap;
+  TNode2ColumnMap         myBotToColumnMap;
 };
 
 #endif