0020672: EDF 1243 SMESH : Be able to transform mixed mesh

+  virtual int  NbCornerNodes() const;
This commit is contained in:
eap 2010-03-30 12:33:10 +00:00
parent 1f50f137e3
commit 0e2bac7865
2 changed files with 12 additions and 0 deletions

View File

@ -222,6 +222,17 @@ bool SMDS_MeshElement::IsMediumNode(const SMDS_MeshNode* node) const
return false;
}
//================================================================================
/*!
* \brief Return number of nodes excluding medium ones
*/
//================================================================================
int SMDS_MeshElement::NbCornerNodes() const
{
return IsQuadratic() ? NbNodes() - NbEdges() : NbNodes();
}
//================================================================================
/*!
* \brief Check if a node belongs to the element

View File

@ -74,6 +74,7 @@ public:
virtual SMDSAbs_EntityType GetEntityType() const = 0;
virtual bool IsMediumNode(const SMDS_MeshNode* node) const;
virtual int NbCornerNodes() const;
friend SMDS_EXPORT std::ostream & operator <<(std::ostream & OS, const SMDS_MeshElement *);
friend SMDS_EXPORT bool SMDS_MeshElementIDFactory::BindID(int ID,SMDS_MeshElement*elem);