Salome HOME
IPAL54426: Evaluate crashes salome
[plugins/netgenplugin.git] / resources / NETGENPlugin.xml
index dbb09c179d69b295cf455286da41258d811e958c..3e173c1298479eac51aec69eb08439546c6b6248 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version='1.0' encoding='us-ascii'?>
 <!DOCTYPE meshers PUBLIC "" "desktop.dtd">
 <!--
-  Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+  Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 
   Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
   CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
 
 <meshers>
 
-<meshers-group name="NETGEN"
-               resources="NETGENPlugin"
+<meshers-group name      ="NETGEN"
+               resources ="NETGENPlugin"
                idl-module="NETGENPlugin"
                server-lib="NETGENEngine"
-               gui-lib="NETGENPluginGUI">
+               gui-lib   ="NETGENPluginGUI">
   <hypotheses>
-    <hypothesis type="NETGEN_Parameters"
+    <hypothesis type    ="NETGEN_Parameters"
                label-id="NETGEN 3D Parameters"
-               icon-id="mesh_hypo_netgen.png"
-               dim="3"/>
-    <hypothesis type="NETGEN_Parameters_2D"
+               icon-id ="mesh_hypo_netgen.png"
+               dim     ="3">
+      <python-wrap>
+        <accumulative-methods>
+          SetLocalSizeOnShape,
+          UnsetLocalSizeOnEntry
+        </accumulative-methods>
+      </python-wrap>
+    </hypothesis>
+
+    <hypothesis type    ="NETGEN_Parameters_2D"
                label-id="NETGEN 2D Parameters"
-               icon-id="mesh_hypo_netgen_2d.png"
-               dim="2"/>
-    <hypothesis type="NETGEN_Parameters_3D"
+               icon-id ="mesh_hypo_netgen_2d.png"
+               dim     ="2">
+      <python-wrap>
+        <accumulative-methods>
+          SetLocalSizeOnShape,
+          UnsetLocalSizeOnEntry
+        </accumulative-methods>
+      </python-wrap>
+    </hypothesis>
+
+    <hypothesis type    ="NETGEN_Parameters_3D"
                label-id="NETGEN 3D Parameters"
-               icon-id="mesh_hypo_netgen.png"
-               dim="3"/>
-    <hypothesis type="NETGEN_Parameters_2D_ONLY"
+               icon-id ="mesh_hypo_netgen.png"
+               dim     ="3">
+      <python-wrap>
+        <accumulative-methods>
+          SetLocalSizeOnShape,
+          UnsetLocalSizeOnEntry
+        </accumulative-methods>
+      </python-wrap>
+    </hypothesis>
+
+    <hypothesis type    ="NETGEN_Parameters_2D_ONLY"
                label-id="NETGEN 2D Parameters"
-               icon-id="mesh_hypo_netgen_2d.png"
-               dim="2"/>
-    <hypothesis type="NETGEN_SimpleParameters_2D"
+               icon-id ="mesh_hypo_netgen_2d.png"
+               dim     ="2">
+      <python-wrap>
+        <accumulative-methods>
+          SetLocalSizeOnShape,
+          UnsetLocalSizeOnEntry
+        </accumulative-methods>
+      </python-wrap>
+    </hypothesis>
+
+    <hypothesis type    ="NETGEN_RemesherParameters_2D"
+               label-id="NETGEN 2D Parameters"
+               icon-id ="mesh_hypo_netgen_2d.png"
+               dim     ="2"/>
+
+    <hypothesis type    ="NETGEN_SimpleParameters_2D"
                label-id="NETGEN 2D Simple Parameters"
-               icon-id="mesh_hypo_netgen_2d.png"
-               dim="2"/>
-    <hypothesis type="NETGEN_SimpleParameters_3D"
+               icon-id ="mesh_hypo_netgen_2d.png"
+               dim     ="2"/>
+
+    <hypothesis type    ="NETGEN_SimpleParameters_3D"
                label-id="NETGEN 3D Simple Parameters"
-               icon-id="mesh_hypo_netgen.png"
-               dim="3"/>
+               icon-id ="mesh_hypo_netgen.png"
+               dim     ="3"/>
   </hypotheses>
+
   <algorithms>
-    <algorithm type="NETGEN_3D"
-               label-id="Tetrahedron (Netgen)"
-               icon-id="mesh_algo_tetra.png"
-               hypos="MaxElementVolume,NETGEN_Parameters_3D"
+    <algorithm type     ="NETGEN_3D"
+               label-id ="NETGEN 3D"
+               icon-id  ="mesh_algo_tetra.png"
+               group-id ="1"
+               priority ="20"
+               hypos    ="MaxElementVolume,NETGEN_Parameters_3D"
                opt-hypos="ViscousLayers"
               need-geom="false"
-               input="TRIA,QUAD"
-               output="TETRA,PYRAMID"
-               dim="3">
+               input    ="TRIA,QUAD"
+               output   ="TETRA,PYRAMID"
+               dim      ="3">
       <python-wrap>
         <algo>NETGEN_3D=Tetrahedron()</algo>
         <hypo>MaxElementVolume=MaxElementVolume(SetMaxElementVolume())</hypo>
       </python-wrap>
     </algorithm>
 
-    <algorithm type="NETGEN_2D_ONLY"
-               label-id="Netgen 2D"
-               icon-id="mesh_algo_netgen_2d.png"
-               hypos="LengthFromEdges,MaxElementArea,NETGEN_Parameters_2D_ONLY"
+    <algorithm type     ="NETGEN_2D_ONLY"
+               label-id ="NETGEN 2D"
+               icon-id  ="mesh_algo_netgen_2d.png"
+               group-id ="1"
+               priority ="20"
+               hypos    ="LengthFromEdges,MaxElementArea,NETGEN_Parameters_2D_ONLY"
                opt-hypos="QuadranglePreference,ViscousLayers2D"
-               input="EDGE"
-               output="TRIA,QUAD"
-               dim="2">
+               input    ="EDGE"
+               output   ="TRIA,QUAD"
+               dim      ="2">
        <python-wrap>
         <algo>NETGEN_2D_ONLY=Triangle(algo=smeshBuilder.NETGEN_2D)</algo>
         <hypo>LengthFromEdges=LengthFromEdges()</hypo>
       </python-wrap>
     </algorithm>
 
-    <algorithm type="NETGEN_2D"
-               label-id="Netgen 1D-2D"
-               icon-id="mesh_algo_netgen_2d.png"
-               hypos="NETGEN_Parameters_2D, NETGEN_SimpleParameters_2D"
-               opt-hypos="ViscousLayers2D"
-               output="TRIA,QUAD"
-               dim="2"
+    <algorithm type             ="NETGEN_2D"
+               label-id         ="NETGEN 1D-2D"
+               icon-id          ="mesh_algo_netgen_2d.png"
+               group-id         ="1"
+               priority         ="10"
+               hypos            ="NETGEN_Parameters_2D, NETGEN_SimpleParameters_2D"
+               opt-hypos        ="ViscousLayers2D"
+               output           ="TRIA,QUAD"
+               dim              ="2"
                support-submeshes="true">
       <python-wrap>
         <algo>NETGEN_2D=Triangle(algo=smeshBuilder.NETGEN_1D2D)</algo>
       </python-wrap>
     </algorithm>
 
-    <algorithm type="NETGEN_2D3D"
-               label-id="Netgen 1D-2D-3D"
-               icon-id="mesh_algo_netgen_2d3d.png"
-               hypos="NETGEN_Parameters, NETGEN_SimpleParameters_3D"
-               output="TETRA,PYRAMID"
-               dim="3"
+    <algorithm type             ="NETGEN_2D3D"
+               label-id         ="NETGEN 1D-2D-3D"
+               icon-id          ="mesh_algo_netgen_2d3d.png"
+               group-id         ="1"
+               priority         ="10"
+               hypos            ="NETGEN_Parameters, NETGEN_SimpleParameters_3D"
+               opt-hypos        ="ViscousLayers"
+               output           ="TETRA,PYRAMID"
+               dim              ="3"
                support-submeshes="true">
       <python-wrap>
         <algo>NETGEN_2D3D=Tetrahedron(algo=smeshBuilder.NETGEN_1D2D3D)</algo>
         <hypo>NETGEN_Parameters=Parameters()</hypo>
         <hypo>NETGEN_SimpleParameters_3D=Parameters(smeshBuilder.SIMPLE)</hypo>
+        <hypo>ViscousLayers=ViscousLayers(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetFaces(1),SetFaces(2),SetMethod())</hypo>
+      </python-wrap>
+    </algorithm>
+
+    <algorithm type      ="NETGEN_Remesher_2D"
+               label-id  ="NETGEN 2D"
+               icon-id   ="mesh_algo_netgen_2d.png"
+               opt-hypos ="NETGEN_RemesherParameters_2D"
+               output    ="TRIA,QUAD"
+               need-geom ="never"
+               dim       ="2">
+      <python-wrap>
+        <algo>NETGEN_Remesher_2D=Triangle(algo=smeshBuilder.NETGEN)</algo>
+        <hypo>NETGEN_RemesherParameters_2D=Parameters()</hypo>
       </python-wrap>
     </algorithm>
 
 
 <hypotheses-set-group>
 
-    <hypotheses-set name="Automatic Tetrahedralization"
+    <hypotheses-set name ="Automatic Tetrahedralization"
                     hypos="NETGEN_Parameters"
                     algos="NETGEN_2D3D"/>
 
-    <hypotheses-set name="Automatic Triangulation"
+    <hypotheses-set name ="Automatic Triangulation"
                     hypos="NETGEN_Parameters_2D"
                     algos="NETGEN_2D"/>