-// Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2012 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
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
// File : StdMeshers_ViscousLayers.hxx
public:
StdMeshers_ViscousLayers(int hypId, int studyId, SMESH_Gen* gen);
- // Set faces to exclude from treatment
- void SetIgnoreFaces(const std::vector<int>& faceIds);
- std::vector<int> GetIgnoreFaces() const { return _ignoreFaceIds; }
+ // Set boundary shapes to exclude from treatment, faces in 3D, edges in 2D
+ void SetBndShapesToIgnore(const std::vector<int>& shapeIds);
+ std::vector<int> GetBndShapesToIgnore() const { return _ignoreBndShapeIds; }
+ bool IsIgnoredShape(const int shapeID) const;
// Set total thickness of layers of prisms
void SetTotalThickness(double thickness);
private:
- std::vector<int> _ignoreFaceIds;
+ std::vector<int> _ignoreBndShapeIds;
int _nbLayers;
double _thickness;
double _stretchFactor;
};
+class SMESH_subMesh;
+namespace VISCOUS_3D
+{
+ // sets a sub-mesh event listener to clear sub-meshes of sub-shapes of
+ // the main shape when sub-mesh of the main shape is cleared,
+ // for example to clear sub-meshes of FACEs when sub-mesh of a SOLID
+ // is cleared
+ void ToClearSubWithMain( SMESH_subMesh* sub, const TopoDS_Shape& main);
+}
+
#endif