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:
eap 2011-06-14 13:50:26 +00:00
parent c9ccfc74e0
commit 77b26c3006

View File

@ -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; }