Salome HOME
Optimize SMDS_MeshElement::GetNodeIndex()
authoreap <eap@opencascade.com>
Mon, 29 Jul 2013 11:48:56 +0000 (11:48 +0000)
committereap <eap@opencascade.com>
Mon, 29 Jul 2013 11:48:56 +0000 (11:48 +0000)
-  int GetNodeIndex( const SMDS_MeshNode* node ) const;
+  virtual int GetNodeIndex( const SMDS_MeshNode* node ) const;

src/SMDS/SMDS_MeshElement.hxx

index 78238dcea1eb24053e6e1ffe52a31853f643012c..0451789422b714e3891194c5122790a824fd68d1 100644 (file)
@@ -141,7 +141,7 @@ public:
     * \param node - the node to check
     * \retval int - node index within the element, -1 if not found
    */
-  int GetNodeIndex( const SMDS_MeshNode* node ) const;
+  virtual int GetNodeIndex( const SMDS_MeshNode* node ) const;
 
   inline ShortType getMeshId()  const { return myMeshId; }
   inline LongType  getshapeId() const { return myShapeId; }