1 // Copyright (C) 2007-2008 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.
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
22 // File : NETGENPlugin_Algorithm.idl
23 // Author : Julia DOROVSKIKH
26 #ifndef _SMESH_NETGENALGORITHM_IDL_
27 #define _SMESH_NETGENALGORITHM_IDL_
29 #include "SALOME_Exception.idl"
30 #include "SMESH_Hypothesis.idl"
33 * NETGENPlugin: interfaces to NETGEN related hypotheses and algorithms
38 * NETGENPlugin_NETGEN_3D: interface of "Tetrahedron (Netgen)" algorithm
40 interface NETGENPlugin_NETGEN_3D : SMESH::SMESH_3D_Algo
45 * NETGENPlugin_NETGEN_2D: interface of "Netgen 1D-2D" algorithm
47 interface NETGENPlugin_NETGEN_2D : SMESH::SMESH_2D_Algo
52 * NETGENPlugin_NETGEN_2D3D: interface of "Netgen 1D-2D-3D" algorithm
54 interface NETGENPlugin_NETGEN_2D3D : SMESH::SMESH_3D_Algo
59 * NETGENPlugin_NETGEN_2D_ONLY: interface of "Netgen 2D" algorithm,
60 * generating 2D elements on a geometrical face taking
61 * into account pre-existing nodes on face boundaries
63 interface NETGENPlugin_NETGEN_2D_ONLY : SMESH::SMESH_2D_Algo
68 * NETGENPlugin_Hypothesis: interface of "NETGEN parameters" hypothesis
70 interface NETGENPlugin_Hypothesis : SMESH::SMESH_Hypothesis
72 void SetMaxSize(in double value);
75 void SetSecondOrder(in boolean value);
76 boolean GetSecondOrder();
78 void SetOptimize(in boolean value);
79 boolean GetOptimize();
81 void SetFineness(in long value);
84 void SetGrowthRate(in double value);
85 double GetGrowthRate();
87 void SetNbSegPerEdge(in double value);
88 double GetNbSegPerEdge();
90 void SetNbSegPerRadius(in double value);
91 double GetNbSegPerRadius();
95 * NETGENPlugin_Hypothesis_2D: interface of "NETGEN 2D parameters" hypothesis
97 interface NETGENPlugin_Hypothesis_2D : NETGENPlugin_Hypothesis
99 void SetQuadAllowed(in boolean value);
100 boolean GetQuadAllowed();
104 * NETGENPlugin_Hypothesis: interface of "NETGEN 2D simple parameters" hypothesis
106 interface NETGENPlugin_SimpleHypothesis_2D : SMESH::SMESH_Hypothesis
109 * Sets <number of segments> value
111 void SetNumberOfSegments(in short nb) raises (SALOME::SALOME_Exception);
113 * Returns <number of segments> value.
114 * Can be zero in case if LocalLength() has been set
116 short GetNumberOfSegments();
119 * Sets <segment length> value
121 void SetLocalLength(in double segmentLength);
123 * Returns <segment length> value.
124 * Can be zero in case if NumberOfSegments() has been set
126 double GetLocalLength();
129 * Sets <maximum element area> to be dependent on 1D discretization
131 void LengthFromEdges();
133 * Sets <maximum element area> value.
134 * Zero or negative value means same as LengthFromEdges().
136 void SetMaxElementArea(in double area);
138 * Returns <maximum element area> value.
139 * Can be zero in case of LengthFromEdges()
141 double GetMaxElementArea();
145 * NETGENPlugin_SimpleHypothesis_3D: interface of "NETGEN 3D simple parameters" hypothesis
147 interface NETGENPlugin_SimpleHypothesis_3D : NETGENPlugin_SimpleHypothesis_2D
150 * Sets <maximum element volume> to be dependent on 2D discretization
152 void LengthFromFaces();
154 * Sets <maximum element volume> value.
155 * Zero or negative value means same as LengthFromFaces().
157 void SetMaxElementVolume(in double volume);
160 * Returns <maximum element volume> value
161 * Can be zero in case of LengthFromFaces()
163 double GetMaxElementVolume();