mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
0020672: EDF 1243 SMESH : Be able to transform mixed mesh
+ virtual int NbCornerNodes() const;
This commit is contained in:
parent
1f50f137e3
commit
0e2bac7865
@ -222,6 +222,17 @@ bool SMDS_MeshElement::IsMediumNode(const SMDS_MeshNode* node) const
|
|||||||
return false;
|
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
|
* \brief Check if a node belongs to the element
|
||||||
|
@ -74,6 +74,7 @@ public:
|
|||||||
virtual SMDSAbs_EntityType GetEntityType() const = 0;
|
virtual SMDSAbs_EntityType GetEntityType() const = 0;
|
||||||
|
|
||||||
virtual bool IsMediumNode(const SMDS_MeshNode* node) const;
|
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 std::ostream & operator <<(std::ostream & OS, const SMDS_MeshElement *);
|
||||||
friend SMDS_EXPORT bool SMDS_MeshElementIDFactory::BindID(int ID,SMDS_MeshElement*elem);
|
friend SMDS_EXPORT bool SMDS_MeshElementIDFactory::BindID(int ID,SMDS_MeshElement*elem);
|
||||||
|
Loading…
Reference in New Issue
Block a user