mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 18:18:34 +05:00
0020743: EDF 1271 SMESH : Create a mesh from a group / export groups
+protected: + inline void addWithPoly(const SMDS_MeshElement* el);
This commit is contained in:
parent
c9ccfc74e0
commit
77b26c3006
@ -55,6 +55,9 @@ public:
|
|||||||
inline int NbPrisms (SMDSAbs_ElementOrder order = ORDER_ANY) const;
|
inline int NbPrisms (SMDSAbs_ElementOrder order = ORDER_ANY) const;
|
||||||
int NbPolyhedrons() const { return myNbPolyhedrons; }
|
int NbPolyhedrons() const { return myNbPolyhedrons; }
|
||||||
|
|
||||||
|
protected:
|
||||||
|
inline void addWithPoly(const SMDS_MeshElement* el);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class SMDS_Mesh;
|
friend class SMDS_Mesh;
|
||||||
|
|
||||||
@ -176,6 +179,14 @@ inline void // add
|
|||||||
SMDS_MeshInfo::add(const SMDS_MeshElement* el)
|
SMDS_MeshInfo::add(const SMDS_MeshElement* el)
|
||||||
{ ++(*myNb[ index(el->GetType(), el->NbNodes()) ]); }
|
{ ++(*myNb[ index(el->GetType(), el->NbNodes()) ]); }
|
||||||
|
|
||||||
|
inline void // addWithPoly
|
||||||
|
SMDS_MeshInfo::addWithPoly(const SMDS_MeshElement* el)
|
||||||
|
{
|
||||||
|
if ( el->IsPoly() )
|
||||||
|
++( el->GetType()==SMDSAbs_Face ? myNbPolygons : myNbPolyhedrons );
|
||||||
|
else
|
||||||
|
add(el);
|
||||||
|
}
|
||||||
inline void // RemoveEdge
|
inline void // RemoveEdge
|
||||||
SMDS_MeshInfo::RemoveEdge(const SMDS_MeshElement* el)
|
SMDS_MeshInfo::RemoveEdge(const SMDS_MeshElement* el)
|
||||||
{ if ( el->IsQuadratic() ) --myNbQuadEdges; else --myNbEdges; }
|
{ if ( el->IsQuadratic() ) --myNbQuadEdges; else --myNbEdges; }
|
||||||
|
Loading…
Reference in New Issue
Block a user