Salome HOME
Merge from V6_main_20120808 08Aug12
[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-2012  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.
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                server-lib="NETGENEngine"
34                gui-lib="NETGENPluginGUI">
35   <hypotheses>
36     <hypothesis type="NETGEN_Parameters"
37                 label-id="NETGEN 3D Parameters"
38                 icon-id="mesh_hypo_netgen.png"
39                 dim="3"/>
40     <hypothesis type="NETGEN_Parameters_2D"
41                 label-id="NETGEN 2D Parameters"
42                 icon-id="mesh_hypo_netgen_2d.png"
43                 dim="2"/>
44     <hypothesis type="NETGEN_Parameters_3D"
45                 label-id="NETGEN 3D Parameters"
46                 icon-id="mesh_hypo_netgen.png"
47                 dim="3"/>
48     <hypothesis type="NETGEN_Parameters_2D_ONLY"
49                 label-id="NETGEN 2D Parameters"
50                 icon-id="mesh_hypo_netgen_2d.png"
51                 dim="2"/>
52     <hypothesis type="NETGEN_SimpleParameters_2D"
53                 label-id="NETGEN 2D Simple Parameters"
54                 icon-id="mesh_hypo_netgen_2d.png"
55                 dim="2"/>
56     <hypothesis type="NETGEN_SimpleParameters_3D"
57                 label-id="NETGEN 3D Simple Parameters"
58                 icon-id="mesh_hypo_netgen.png"
59                 dim="3"/>
60   </hypotheses>
61   <algorithms>
62     <algorithm type="NETGEN_3D"
63                label-id="Tetrahedron (Netgen)"
64                icon-id="mesh_algo_tetra.png"
65                hypos="MaxElementVolume,NETGEN_Parameters_3D"
66                opt-hypos="ViscousLayers"
67                need-geom="false"
68                input="TRIA,QUAD"
69                dim="3">
70       <python-wrap>
71         <algo>NETGEN_3D=Tetrahedron()</algo>
72         <hypo>MaxElementVolume=MaxElementVolume(SetMaxElementVolume())</hypo>
73         <hypo>NETGEN_Parameters_3D=Parameters()</hypo>
74         <hypo>ViscousLayers=ViscousLayers(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetIgnoreFaces())</hypo>
75       </python-wrap>
76     </algorithm>
77
78     <algorithm type="NETGEN_2D_ONLY"
79                label-id="Netgen 2D"
80                icon-id="mesh_algo_netgen_2d.png"
81                hypos="LengthFromEdges,MaxElementArea,NETGEN_Parameters_2D_ONLY"
82                opt-hypos="QuadranglePreference"
83                input="EDGE"
84                output="TRIA,QUAD"
85                dim="2">
86        <python-wrap>
87         <algo>NETGEN_2D_ONLY=Triangle(algo=smesh.NETGEN_2D)</algo>
88         <hypo>LengthFromEdges=LengthFromEdges()</hypo>
89         <hypo>MaxElementArea=MaxElementArea(SetMaxElementArea())</hypo>
90         <hypo>NETGEN_Parameters_2D_ONLY=Parameters()</hypo>
91         <hypo>QuadranglePreference=SetQuadAllowed()</hypo>
92       </python-wrap>
93     </algorithm>
94
95     <algorithm type="NETGEN_2D"
96                label-id="Netgen 1D-2D"
97                icon-id="mesh_algo_netgen_2d.png"
98                hypos="NETGEN_Parameters_2D, NETGEN_SimpleParameters_2D"
99                output="TRIA,QUAD"
100                dim="2"
101                support-submeshes="true">
102       <python-wrap>
103         <algo>NETGEN_2D=Triangle(algo=smesh.NETGEN_1D2D)</algo>
104         <hypo>NETGEN_Parameters_2D=Parameters()</hypo>
105         <hypo>NETGEN_SimpleParameters_2D=Parameters(smesh.SIMPLE)</hypo>
106       </python-wrap>
107     </algorithm>
108
109     <algorithm type="NETGEN_2D3D"
110                label-id="Netgen 1D-2D-3D"
111                icon-id="mesh_algo_netgen_2d3d.png"
112                hypos="NETGEN_Parameters, NETGEN_SimpleParameters_3D"
113                dim="3"
114                support-submeshes="true">
115       <python-wrap>
116         <algo>NETGEN_2D3D=Tetrahedron(algo=smesh.NETGEN_1D2D3D)</algo>
117         <hypo>NETGEN_Parameters=Parameters()</hypo>
118         <hypo>NETGEN_SimpleParameters_3D=Parameters(smesh.SIMPLE)</hypo>
119       </python-wrap>
120     </algorithm>
121
122   </algorithms>
123 </meshers-group>
124
125 </meshers>