1 // Copyright (C) 2007-2023 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File : StdMeshers_ViscousLayerBuilder_i.hxx
23 #ifndef _SMESH_ViscousLayersBuilder_I_HXX_
24 #define _SMESH_ViscousLayersBuilder_I_HXX_
26 #include "SMESH_StdMeshers_I.hxx"
28 #include <SALOMEconfig.h>
29 #include CORBA_SERVER_HEADER(SMESH_BasicHypothesis)
31 #include "SMESH_2D_Algo_i.hxx"
32 #include "SMESH_Hypothesis_i.hxx"
33 #include "SMESH_Mesh_i.hxx"
34 #include "StdMeshers_ViscousLayerBuilder.hxx"
35 #include "StdMeshers_ObjRefUlils.hxx"
39 class STDMESHERS_I_EXPORT StdMeshers_ViscousLayerBuilder_i:
40 public virtual POA_StdMeshers::StdMeshers_ViscousLayerBuilder,
41 public virtual SMESH_2D_Algo_i
45 StdMeshers_ViscousLayerBuilder_i( PortableServer::POA_ptr thePOA,
46 ::SMESH_Gen* theGenImpl );
48 virtual ~StdMeshers_ViscousLayerBuilder_i();
50 // Verify whether algorithm supports given entity type
51 CORBA::Boolean IsDimSupported( SMESH::Dimension type );
54 ::StdMeshers_ViscousLayerBuilder* GetImpl();
56 void SetIgnoreFaces(const ::SMESH::long_array& faceIDs);
57 void SetFaces(const SMESH::long_array& faceIDs,
58 CORBA::Boolean toIgnore);
59 void SetTotalThickness(::CORBA::Double thickness);
60 void SetNumberLayers(::CORBA::Short nb);
61 void SetStretchFactor(::CORBA::Double factor);
62 void SetMethod( ::StdMeshers::VLExtrusionMethod how );
63 void SetGroupName(const char* name);
65 // Compute and return the shrink geometry
66 GEOM::GEOM_Object_ptr GetShrinkGeometry( SMESH::SMESH_Mesh_ptr finalMesh, GEOM::GEOM_Object_ptr theShapeObject );
68 // Build the viscous layer on the specified faces/edges available in the sourceMesh and consolidate the result in the finalMesh
69 CORBA::Boolean AddLayers( SMESH::SMESH_Mesh_ptr sourceMesh, SMESH::SMESH_Mesh_ptr finalMesh, GEOM::GEOM_Object_ptr theShapeObject );