From: eap Date: Thu, 30 Dec 2010 09:29:49 +0000 (+0000) Subject: 0020832: EDF 1359 SMESH : Automatic meshing of boundary layers X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ce8d8b3b6256c19b0710c696507747f257ec369d;p=modules%2Fsmesh.git 0020832: EDF 1359 SMESH : Automatic meshing of boundary layers for NETGEN to work after StdMeshers_ViscousLayers + bool IsTemporary(const SMDS_MeshElement* elem ) const; --- diff --git a/src/StdMeshers/StdMeshers_ProxyMesh.cxx b/src/StdMeshers/StdMeshers_ProxyMesh.cxx index ace63005a..83effe6b6 100644 --- a/src/StdMeshers/StdMeshers_ProxyMesh.cxx +++ b/src/StdMeshers/StdMeshers_ProxyMesh.cxx @@ -440,6 +440,17 @@ void StdMeshers_ProxyMesh::storeTmpElement( const SMDS_MeshElement* face ) _elemsInMesh.insert( face ); } +//================================================================================ +/*! + * \brief Return true if the element is a temporary one + */ +//================================================================================ + +bool StdMeshers_ProxyMesh::IsTemporary(const SMDS_MeshElement* elem ) const +{ + return ( elem->GetID() < 1 ) || _elemsInMesh.count( elem ); +} + //================================================================================ /*! * \brief Return a proxy node or an input node diff --git a/src/StdMeshers/StdMeshers_ProxyMesh.hxx b/src/StdMeshers/StdMeshers_ProxyMesh.hxx index 094609647..53c4a6fe4 100644 --- a/src/StdMeshers/StdMeshers_ProxyMesh.hxx +++ b/src/StdMeshers/StdMeshers_ProxyMesh.hxx @@ -108,6 +108,7 @@ public: // Return total nb of faces taking into account substitutions int NbFaces() const; + bool IsTemporary(const SMDS_MeshElement* elem ) const; //-------------------------------------------------------------------------------- // Interface for descendants