-// Copyright (C) 2007-2019 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#include <TopoDS_Shape.hxx>
#include <NCollection_DataMap.hxx>
+#include <smIdType.hxx>
#include <map>
#include <vector>
const SMDS_MeshNode* GetProxyNode( const SMDS_MeshNode* n ) const;
const UVPtStructVec& GetUVPtStructVec() const { return _uvPtStructVec; }
virtual void AddElement(const SMDS_MeshElement * e);
- virtual int NbElements() const;
- virtual int NbNodes() const;
+ virtual smIdType NbElements() const;
+ virtual smIdType NbNodes() const;
virtual SMDS_ElemIteratorPtr GetElements() const;
virtual SMDS_NodeIteratorPtr GetNodes() const;
virtual void Clear();
protected: // methods of SMDS_ElementHolder; remove elements before mesh compacting or clearing
virtual SMDS_ElemIteratorPtr getElements() { Clear(); return GetElements(); }
virtual void tmpClear() {}
- virtual void add( const SMDS_MeshElement* element ) {}
+ virtual void add( const SMDS_MeshElement* /*element*/ ) {}
virtual void compact() {}
virtual void clear() { Clear(); }
};
SMDS_ElemIteratorPtr GetFaces(const TopoDS_Shape& face) const;
// Return total nb of faces taking into account substitutions
- int NbFaces() const;
+ smIdType NbFaces() const;
bool IsTemporary(const SMDS_MeshElement* elem ) const;
SMDS_ElemIteratorPtr GetInverseElementIterator(const SMDS_MeshNode* node,
SMDSAbs_ElementType type) const;
-
+ // Check if a FACE has prisms on its both sides
+ static bool HasPrismsOnTwoSides( SMESHDS_SubMesh* faceSM );
SMESH_Mesh* GetMesh() const { return const_cast<SMESH_Mesh*>( _mesh ); }