Salome HOME
IPAL54426: Evaluate crashes salome
[plugins/netgenplugin.git] / resources / NETGENPlugin.xml
1 <?xml version='1.0' encoding='us-ascii'?>
2 <!DOCTYPE meshers PUBLIC "" "desktop.dtd">
3 <!--
4   Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
5
6   Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
7   CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
8
9   This library is free software; you can redistribute it and/or
10   modify it under the terms of the GNU Lesser General Public
11   License as published by the Free Software Foundation; either
12   version 2.1 of the License, or (at your option) any later version.
13
14   This library is distributed in the hope that it will be useful,
15   but WITHOUT ANY WARRANTY; without even the implied warranty of
16   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17   Lesser General Public License for more details.
18
19   You should have received a copy of the GNU Lesser General Public
20   License along with this library; if not, write to the Free Software
21   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
22
23   See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
24
25 -->
26
27 <!--  GUI customization for MESH component  -->
28
29 <meshers>
30
31 <meshers-group name      ="NETGEN"
32                resources ="NETGENPlugin"
33                idl-module="NETGENPlugin"
34                server-lib="NETGENEngine"
35                gui-lib   ="NETGENPluginGUI">
36   <hypotheses>
37     <hypothesis type    ="NETGEN_Parameters"
38                 label-id="NETGEN 3D Parameters"
39                 icon-id ="mesh_hypo_netgen.png"
40                 dim     ="3">
41       <python-wrap>
42         <accumulative-methods>
43           SetLocalSizeOnShape,
44           UnsetLocalSizeOnEntry
45         </accumulative-methods>
46       </python-wrap>
47     </hypothesis>
48
49     <hypothesis type    ="NETGEN_Parameters_2D"
50                 label-id="NETGEN 2D Parameters"
51                 icon-id ="mesh_hypo_netgen_2d.png"
52                 dim     ="2">
53       <python-wrap>
54         <accumulative-methods>
55           SetLocalSizeOnShape,
56           UnsetLocalSizeOnEntry
57         </accumulative-methods>
58       </python-wrap>
59     </hypothesis>
60
61     <hypothesis type    ="NETGEN_Parameters_3D"
62                 label-id="NETGEN 3D Parameters"
63                 icon-id ="mesh_hypo_netgen.png"
64                 dim     ="3">
65       <python-wrap>
66         <accumulative-methods>
67           SetLocalSizeOnShape,
68           UnsetLocalSizeOnEntry
69         </accumulative-methods>
70       </python-wrap>
71     </hypothesis>
72
73     <hypothesis type    ="NETGEN_Parameters_2D_ONLY"
74                 label-id="NETGEN 2D Parameters"
75                 icon-id ="mesh_hypo_netgen_2d.png"
76                 dim     ="2">
77       <python-wrap>
78         <accumulative-methods>
79           SetLocalSizeOnShape,
80           UnsetLocalSizeOnEntry
81         </accumulative-methods>
82       </python-wrap>
83     </hypothesis>
84
85     <hypothesis type    ="NETGEN_RemesherParameters_2D"
86                 label-id="NETGEN 2D Parameters"
87                 icon-id ="mesh_hypo_netgen_2d.png"
88                 dim     ="2"/>
89
90     <hypothesis type    ="NETGEN_SimpleParameters_2D"
91                 label-id="NETGEN 2D Simple Parameters"
92                 icon-id ="mesh_hypo_netgen_2d.png"
93                 dim     ="2"/>
94
95     <hypothesis type    ="NETGEN_SimpleParameters_3D"
96                 label-id="NETGEN 3D Simple Parameters"
97                 icon-id ="mesh_hypo_netgen.png"
98                 dim     ="3"/>
99   </hypotheses>
100
101   <algorithms>
102     <algorithm type     ="NETGEN_3D"
103                label-id ="NETGEN 3D"
104                icon-id  ="mesh_algo_tetra.png"
105                group-id ="1"
106                priority ="20"
107                hypos    ="MaxElementVolume,NETGEN_Parameters_3D"
108                opt-hypos="ViscousLayers"
109                need-geom="false"
110                input    ="TRIA,QUAD"
111                output   ="TETRA,PYRAMID"
112                dim      ="3">
113       <python-wrap>
114         <algo>NETGEN_3D=Tetrahedron()</algo>
115         <hypo>MaxElementVolume=MaxElementVolume(SetMaxElementVolume())</hypo>
116         <hypo>NETGEN_Parameters_3D=Parameters()</hypo>
117         <hypo>ViscousLayers=ViscousLayers(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetFaces(1),SetFaces(2),SetMethod())</hypo>
118       </python-wrap>
119     </algorithm>
120
121     <algorithm type     ="NETGEN_2D_ONLY"
122                label-id ="NETGEN 2D"
123                icon-id  ="mesh_algo_netgen_2d.png"
124                group-id ="1"
125                priority ="20"
126                hypos    ="LengthFromEdges,MaxElementArea,NETGEN_Parameters_2D_ONLY"
127                opt-hypos="QuadranglePreference,ViscousLayers2D"
128                input    ="EDGE"
129                output   ="TRIA,QUAD"
130                dim      ="2">
131        <python-wrap>
132         <algo>NETGEN_2D_ONLY=Triangle(algo=smeshBuilder.NETGEN_2D)</algo>
133         <hypo>LengthFromEdges=LengthFromEdges()</hypo>
134         <hypo>MaxElementArea=MaxElementArea(SetMaxElementArea())</hypo>
135         <hypo>NETGEN_Parameters_2D_ONLY=Parameters()</hypo>
136         <hypo>QuadranglePreference=SetQuadAllowed()</hypo>
137         <hypo>ViscousLayers2D=ViscousLayers2D(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetIgnoreEdges())</hypo>
138       </python-wrap>
139     </algorithm>
140
141     <algorithm type             ="NETGEN_2D"
142                label-id         ="NETGEN 1D-2D"
143                icon-id          ="mesh_algo_netgen_2d.png"
144                group-id         ="1"
145                priority         ="10"
146                hypos            ="NETGEN_Parameters_2D, NETGEN_SimpleParameters_2D"
147                opt-hypos        ="ViscousLayers2D"
148                output           ="TRIA,QUAD"
149                dim              ="2"
150                support-submeshes="true">
151       <python-wrap>
152         <algo>NETGEN_2D=Triangle(algo=smeshBuilder.NETGEN_1D2D)</algo>
153         <hypo>NETGEN_Parameters_2D=Parameters()</hypo>
154         <hypo>NETGEN_SimpleParameters_2D=Parameters(smeshBuilder.SIMPLE)</hypo>
155         <hypo>ViscousLayers2D=ViscousLayers2D(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetIgnoreEdges())</hypo>
156       </python-wrap>
157     </algorithm>
158
159     <algorithm type             ="NETGEN_2D3D"
160                label-id         ="NETGEN 1D-2D-3D"
161                icon-id          ="mesh_algo_netgen_2d3d.png"
162                group-id         ="1"
163                priority         ="10"
164                hypos            ="NETGEN_Parameters, NETGEN_SimpleParameters_3D"
165                opt-hypos        ="ViscousLayers"
166                output           ="TETRA,PYRAMID"
167                dim              ="3"
168                support-submeshes="true">
169       <python-wrap>
170         <algo>NETGEN_2D3D=Tetrahedron(algo=smeshBuilder.NETGEN_1D2D3D)</algo>
171         <hypo>NETGEN_Parameters=Parameters()</hypo>
172         <hypo>NETGEN_SimpleParameters_3D=Parameters(smeshBuilder.SIMPLE)</hypo>
173         <hypo>ViscousLayers=ViscousLayers(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetFaces(1),SetFaces(2),SetMethod())</hypo>
174       </python-wrap>
175     </algorithm>
176
177     <algorithm type      ="NETGEN_Remesher_2D"
178                label-id  ="NETGEN 2D"
179                icon-id   ="mesh_algo_netgen_2d.png"
180                opt-hypos ="NETGEN_RemesherParameters_2D"
181                output    ="TRIA,QUAD"
182                need-geom ="never"
183                dim       ="2">
184       <python-wrap>
185         <algo>NETGEN_Remesher_2D=Triangle(algo=smeshBuilder.NETGEN)</algo>
186         <hypo>NETGEN_RemesherParameters_2D=Parameters()</hypo>
187       </python-wrap>
188     </algorithm>
189
190   </algorithms>
191 </meshers-group>
192
193 <hypotheses-set-group>
194
195     <hypotheses-set name ="Automatic Tetrahedralization"
196                     hypos="NETGEN_Parameters"
197                     algos="NETGEN_2D3D"/>
198
199     <hypotheses-set name ="Automatic Triangulation"
200                     hypos="NETGEN_Parameters_2D"
201                     algos="NETGEN_2D"/>
202
203 </hypotheses-set-group>
204
205 </meshers>