1 // Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // File : NETGENPlugin_Algorithm.idl
24 // Author : Julia DOROVSKIKH
26 #ifndef _SMESH_NETGENALGORITHM_IDL_
27 #define _SMESH_NETGENALGORITHM_IDL_
29 #include "SALOME_Exception.idl"
30 #include "SMESH_Hypothesis.idl"
31 #include "GEOM_Gen.idl"
34 * NETGENPlugin: interfaces to NETGEN related hypotheses and algorithms
38 typedef sequence<string> string_array;
40 * NETGENPlugin_NETGEN_3D: interface of "Tetrahedron (Netgen)" algorithm
42 interface NETGENPlugin_NETGEN_3D : SMESH::SMESH_3D_Algo
47 * NETGENPlugin_NETGEN_2D: interface of "Netgen 1D-2D" algorithm
49 interface NETGENPlugin_NETGEN_2D : SMESH::SMESH_2D_Algo
54 * NETGENPlugin_NETGEN_2D3D: interface of "Netgen 1D-2D-3D" algorithm
56 interface NETGENPlugin_NETGEN_2D3D : SMESH::SMESH_3D_Algo
61 * NETGENPlugin_NETGEN_2D_ONLY: interface of "Netgen 2D" algorithm,
62 * generating 2D elements on a geometrical face taking
63 * into account pre-existing nodes on face boundaries
65 interface NETGENPlugin_NETGEN_2D_ONLY : SMESH::SMESH_2D_Algo
70 * NETGENPlugin_Hypothesis: interface of "NETGEN parameters" hypothesis
72 interface NETGENPlugin_Hypothesis : SMESH::SMESH_Hypothesis
74 void SetMaxSize(in double value);
77 void SetMinSize(in double value);
80 void SetSecondOrder(in boolean value);
81 boolean GetSecondOrder();
83 void SetOptimize(in boolean value);
84 boolean GetOptimize();
86 void SetFineness(in long value);
89 void SetGrowthRate(in double value);
90 double GetGrowthRate();
92 void SetNbSegPerEdge(in double value);
93 double GetNbSegPerEdge();
95 void SetNbSegPerRadius(in double value);
96 double GetNbSegPerRadius();
98 void SetQuadAllowed(in boolean value);
99 boolean GetQuadAllowed();
101 void SetUseSurfaceCurvature(in boolean value);
102 boolean GetUseSurfaceCurvature();
104 void SetFuseEdges(in boolean value);
105 boolean GetFuseEdges();
107 void SetLocalSizeOnShape(in GEOM::GEOM_Object GeomObj, in double localSize)
108 raises (SALOME::SALOME_Exception);
109 void SetLocalSizeOnEntry(in string entry, in double localSize);
110 double GetLocalSizeOnEntry(in string entry);
111 string_array GetLocalSizeEntries();
112 void UnsetLocalSizeOnEntry(in string entry);
116 * NETGENPlugin_Hypothesis_2D: interface of "NETGEN 2D parameters" hypothesis
118 interface NETGENPlugin_Hypothesis_2D : NETGENPlugin_Hypothesis
123 * interface of "NETGEN 2D parameters" hypothesis used by NETGENPlugin_NETGEN_2D_ONLY algoritm
125 interface NETGENPlugin_Hypothesis_2D_ONLY : NETGENPlugin_Hypothesis_2D
130 * interface of "NETGEN 3D parameters" hypothesis used by NETGENPlugin_NETGEN_3D algorithm
132 interface NETGENPlugin_Hypothesis_3D : NETGENPlugin_Hypothesis
137 * NETGENPlugin_Hypothesis: interface of "NETGEN 2D simple parameters" hypothesis
139 interface NETGENPlugin_SimpleHypothesis_2D : SMESH::SMESH_Hypothesis
142 * Sets <number of segments> value
144 void SetNumberOfSegments(in short nb) raises (SALOME::SALOME_Exception);
146 * Returns <number of segments> value.
147 * Can be zero in case if LocalLength() has been set
149 short GetNumberOfSegments();
152 * Sets <segment length> value
154 void SetLocalLength(in double segmentLength);
156 * Returns <segment length> value.
157 * Can be zero in case if NumberOfSegments() has been set
159 double GetLocalLength();
162 * Sets <maximum element area> to be dependent on 1D discretization
164 void LengthFromEdges();
166 * Sets <maximum element area> value.
167 * Zero or negative value means same as LengthFromEdges().
169 void SetMaxElementArea(in double area);
171 * Returns <maximum element area> value.
172 * Can be zero in case of LengthFromEdges()
174 double GetMaxElementArea();
177 * Enables/disables generation of quadrangular faces
179 void SetAllowQuadrangles(in boolean toAllow);
181 * Returns true if generation of quadrangular faces is enabled
183 boolean GetAllowQuadrangles();
187 * NETGENPlugin_SimpleHypothesis_3D: interface of "NETGEN 3D simple parameters" hypothesis
189 interface NETGENPlugin_SimpleHypothesis_3D : NETGENPlugin_SimpleHypothesis_2D
192 * Sets <maximum element volume> to be dependent on 2D discretization
194 void LengthFromFaces();
196 * Sets <maximum element volume> value.
197 * Zero or negative value means same as LengthFromFaces().
199 void SetMaxElementVolume(in double volume);
202 * Returns <maximum element volume> value
203 * Can be zero in case of LengthFromFaces()
205 double GetMaxElementVolume();