Salome HOME
c679d9215c02db6f39f3a8d92d25cfa6c1431489
[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-2013  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                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     <hypothesis type="NETGEN_Parameters_2D"
42                 label-id="NETGEN 2D Parameters"
43                 icon-id="mesh_hypo_netgen_2d.png"
44                 dim="2"/>
45     <hypothesis type="NETGEN_Parameters_3D"
46                 label-id="NETGEN 3D Parameters"
47                 icon-id="mesh_hypo_netgen.png"
48                 dim="3"/>
49     <hypothesis type="NETGEN_Parameters_2D_ONLY"
50                 label-id="NETGEN 2D Parameters"
51                 icon-id="mesh_hypo_netgen_2d.png"
52                 dim="2"/>
53     <hypothesis type="NETGEN_SimpleParameters_2D"
54                 label-id="NETGEN 2D Simple Parameters"
55                 icon-id="mesh_hypo_netgen_2d.png"
56                 dim="2"/>
57     <hypothesis type="NETGEN_SimpleParameters_3D"
58                 label-id="NETGEN 3D Simple Parameters"
59                 icon-id="mesh_hypo_netgen.png"
60                 dim="3"/>
61   </hypotheses>
62   <algorithms>
63     <algorithm type="NETGEN_3D"
64                label-id="Tetrahedron (Netgen)"
65                icon-id="mesh_algo_tetra.png"
66                hypos="MaxElementVolume,NETGEN_Parameters_3D"
67                opt-hypos="ViscousLayers"
68                need-geom="false"
69                input="TRIA,QUAD"
70                output="TETRA,PYRAMID"
71                dim="3">
72       <python-wrap>
73         <algo>NETGEN_3D=Tetrahedron()</algo>
74         <hypo>MaxElementVolume=MaxElementVolume(SetMaxElementVolume())</hypo>
75         <hypo>NETGEN_Parameters_3D=Parameters()</hypo>
76         <hypo>ViscousLayers=ViscousLayers(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetIgnoreFaces())</hypo>
77       </python-wrap>
78     </algorithm>
79
80     <algorithm type="NETGEN_2D_ONLY"
81                label-id="Netgen 2D"
82                icon-id="mesh_algo_netgen_2d.png"
83                hypos="LengthFromEdges,MaxElementArea,NETGEN_Parameters_2D_ONLY"
84                opt-hypos="QuadranglePreference,ViscousLayers2D"
85                input="EDGE"
86                output="TRIA,QUAD"
87                dim="2">
88        <python-wrap>
89         <algo>NETGEN_2D_ONLY=Triangle(algo=smeshBuilder.NETGEN_2D)</algo>
90         <hypo>LengthFromEdges=LengthFromEdges()</hypo>
91         <hypo>MaxElementArea=MaxElementArea(SetMaxElementArea())</hypo>
92         <hypo>NETGEN_Parameters_2D_ONLY=Parameters()</hypo>
93         <hypo>QuadranglePreference=SetQuadAllowed()</hypo>
94         <hypo>ViscousLayers2D=ViscousLayers2D(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetIgnoreEdges())</hypo>
95       </python-wrap>
96     </algorithm>
97
98     <algorithm type="NETGEN_2D"
99                label-id="Netgen 1D-2D"
100                icon-id="mesh_algo_netgen_2d.png"
101                hypos="NETGEN_Parameters_2D, NETGEN_SimpleParameters_2D"
102                opt-hypos="ViscousLayers2D"
103                output="TRIA,QUAD"
104                dim="2"
105                support-submeshes="true">
106       <python-wrap>
107         <algo>NETGEN_2D=Triangle(algo=smeshBuilder.NETGEN_1D2D)</algo>
108         <hypo>NETGEN_Parameters_2D=Parameters()</hypo>
109         <hypo>NETGEN_SimpleParameters_2D=Parameters(smeshBuilder.SIMPLE)</hypo>
110         <hypo>ViscousLayers2D=ViscousLayers2D(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetIgnoreEdges())</hypo>
111       </python-wrap>
112     </algorithm>
113
114     <algorithm type="NETGEN_2D3D"
115                label-id="Netgen 1D-2D-3D"
116                icon-id="mesh_algo_netgen_2d3d.png"
117                hypos="NETGEN_Parameters, NETGEN_SimpleParameters_3D"
118                output="TETRA,PYRAMID"
119                dim="3"
120                support-submeshes="true">
121       <python-wrap>
122         <algo>NETGEN_2D3D=Tetrahedron(algo=smeshBuilder.NETGEN_1D2D3D)</algo>
123         <hypo>NETGEN_Parameters=Parameters()</hypo>
124         <hypo>NETGEN_SimpleParameters_3D=Parameters(smeshBuilder.SIMPLE)</hypo>
125       </python-wrap>
126     </algorithm>
127
128   </algorithms>
129 </meshers-group>
130
131 <hypotheses-set-group>
132
133     <hypotheses-set name="Automatic Tetrahedralization"
134                     hypos="NETGEN_Parameters"
135                     algos="NETGEN_2D3D"/>
136
137     <hypotheses-set name="Automatic Triangulation"
138                     hypos="NETGEN_Parameters_2D"
139                     algos="NETGEN_2D"/>
140
141 </hypotheses-set-group>
142
143 </meshers>