0020279: [CEA 334] control the "random" use when using mesh algorithms

Compare TNode's by node ID
This commit is contained in:
eap 2009-05-19 15:34:07 +00:00
parent 966f6ecf06
commit eb2c096f8e

View 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(); }
};
// ===============================================================
@ -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