Salome HOME
IPAL52922: Wrong processing of "Growth rate" value (Netgen 2D Parameters hypothesis...
[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-2015  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     <hypothesis type="NETGEN_Parameters_2D"
49                 label-id="NETGEN 2D Parameters"
50                 icon-id="mesh_hypo_netgen_2d.png"
51                 dim="2">
52       <python-wrap>
53         <accumulative-methods>
54           SetLocalSizeOnShape,
55           UnsetLocalSizeOnEntry
56         </accumulative-methods>
57       </python-wrap>
58     </hypothesis>
59     <hypothesis type="NETGEN_Parameters_3D"
60                 label-id="NETGEN 3D Parameters"
61                 icon-id="mesh_hypo_netgen.png"
62                 dim="3">
63       <python-wrap>
64         <accumulative-methods>
65           SetLocalSizeOnShape,
66           UnsetLocalSizeOnEntry
67         </accumulative-methods>
68       </python-wrap>
69     </hypothesis>
70     <hypothesis type="NETGEN_Parameters_2D_ONLY"
71                 label-id="NETGEN 2D Parameters"
72                 icon-id="mesh_hypo_netgen_2d.png"
73                 dim="2">
74       <python-wrap>
75         <accumulative-methods>
76           SetLocalSizeOnShape,
77           UnsetLocalSizeOnEntry
78         </accumulative-methods>
79       </python-wrap>
80     </hypothesis>
81     <hypothesis type="NETGEN_SimpleParameters_2D"
82                 label-id="NETGEN 2D Simple Parameters"
83                 icon-id="mesh_hypo_netgen_2d.png"
84                 dim="2"/>
85     <hypothesis type="NETGEN_SimpleParameters_3D"
86                 label-id="NETGEN 3D Simple Parameters"
87                 icon-id="mesh_hypo_netgen.png"
88                 dim="3"/>
89   </hypotheses>
90   <algorithms>
91     <algorithm type="NETGEN_3D"
92                label-id="Tetrahedron (Netgen)"
93                icon-id="mesh_algo_tetra.png"
94                hypos="MaxElementVolume,NETGEN_Parameters_3D"
95                opt-hypos="ViscousLayers"
96                need-geom="false"
97                input="TRIA,QUAD"
98                output="TETRA,PYRAMID"
99                dim="3">
100       <python-wrap>
101         <algo>NETGEN_3D=Tetrahedron()</algo>
102         <hypo>MaxElementVolume=MaxElementVolume(SetMaxElementVolume())</hypo>
103         <hypo>NETGEN_Parameters_3D=Parameters()</hypo>
104         <hypo>ViscousLayers=ViscousLayers(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetFaces(1),SetFaces(2),SetMethod())</hypo>
105       </python-wrap>
106     </algorithm>
107
108     <algorithm type="NETGEN_2D_ONLY"
109                label-id="Netgen 2D"
110                icon-id="mesh_algo_netgen_2d.png"
111                hypos="LengthFromEdges,MaxElementArea,NETGEN_Parameters_2D_ONLY"
112                opt-hypos="QuadranglePreference,ViscousLayers2D"
113                input="EDGE"
114                output="TRIA,QUAD"
115                dim="2">
116        <python-wrap>
117         <algo>NETGEN_2D_ONLY=Triangle(algo=smeshBuilder.NETGEN_2D)</algo>
118         <hypo>LengthFromEdges=LengthFromEdges()</hypo>
119         <hypo>MaxElementArea=MaxElementArea(SetMaxElementArea())</hypo>
120         <hypo>NETGEN_Parameters_2D_ONLY=Parameters()</hypo>
121         <hypo>QuadranglePreference=SetQuadAllowed()</hypo>
122         <hypo>ViscousLayers2D=ViscousLayers2D(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetIgnoreEdges())</hypo>
123       </python-wrap>
124     </algorithm>
125
126     <algorithm type="NETGEN_2D"
127                label-id="Netgen 1D-2D"
128                icon-id="mesh_algo_netgen_2d.png"
129                hypos="NETGEN_Parameters_2D, NETGEN_SimpleParameters_2D"
130                opt-hypos="ViscousLayers2D"
131                output="TRIA,QUAD"
132                dim="2"
133                support-submeshes="true">
134       <python-wrap>
135         <algo>NETGEN_2D=Triangle(algo=smeshBuilder.NETGEN_1D2D)</algo>
136         <hypo>NETGEN_Parameters_2D=Parameters()</hypo>
137         <hypo>NETGEN_SimpleParameters_2D=Parameters(smeshBuilder.SIMPLE)</hypo>
138         <hypo>ViscousLayers2D=ViscousLayers2D(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetIgnoreEdges())</hypo>
139       </python-wrap>
140     </algorithm>
141
142     <algorithm type="NETGEN_2D3D"
143                label-id="Netgen 1D-2D-3D"
144                icon-id="mesh_algo_netgen_2d3d.png"
145                hypos="NETGEN_Parameters, NETGEN_SimpleParameters_3D"
146                output="TETRA,PYRAMID"
147                dim="3"
148                support-submeshes="true">
149       <python-wrap>
150         <algo>NETGEN_2D3D=Tetrahedron(algo=smeshBuilder.NETGEN_1D2D3D)</algo>
151         <hypo>NETGEN_Parameters=Parameters()</hypo>
152         <hypo>NETGEN_SimpleParameters_3D=Parameters(smeshBuilder.SIMPLE)</hypo>
153       </python-wrap>
154     </algorithm>
155
156   </algorithms>
157 </meshers-group>
158
159 <hypotheses-set-group>
160
161     <hypotheses-set name="Automatic Tetrahedralization"
162                     hypos="NETGEN_Parameters"
163                     algos="NETGEN_2D3D"/>
164
165     <hypotheses-set name="Automatic Triangulation"
166                     hypos="NETGEN_Parameters_2D"
167                     algos="NETGEN_2D"/>
168
169 </hypotheses-set-group>
170
171 </meshers>