From ce8d8b3b6256c19b0710c696507747f257ec369d Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 30 Dec 2010 09:29:49 +0000 Subject: [PATCH] 0020832: EDF 1359 SMESH : Automatic meshing of boundary layers for NETGEN to work after StdMeshers_ViscousLayers + bool IsTemporary(const SMDS_MeshElement* elem ) const; --- src/StdMeshers/StdMeshers_ProxyMesh.cxx | 11 +++++++++++ src/StdMeshers/StdMeshers_ProxyMesh.hxx | 1 + 2 files changed, 12 insertions(+) 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 -- 2.39.2