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