Salome HOME
Add remesher
[plugins/blsurfplugin.git] / resources / BLSURFPlugin.xml
index 30bcd8ff31078161167d17bc64fd31b38389ee58..7ba53d018c049ce0000c46673c1c61e810b2c9dd 100644 (file)
@@ -1,5 +1,25 @@
 <?xml version='1.0' encoding='us-ascii'?>
 <!DOCTYPE meshers PUBLIC "" "desktop.dtd">
+<!--
+  Copyright (C) 2007-2016  CEA/DEN, EDF R&D
+
+  This library is free software; you can redistribute it and/or
+  modify it under the terms of the GNU Lesser General Public
+  License as published by the Free Software Foundation; either
+  version 2.1 of the License, or (at your option) any later version.
+
+  This library is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+  Lesser General Public License for more details.
+
+  You should have received a copy of the GNU Lesser General Public
+  License along with this library; if not, write to the Free Software
+  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+
+  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+
+-->
 
 <!--  GUI customization for BLSURF Plugin  -->
 
 
 <meshers-group name="BLSURF"
                resources="BLSURFPlugin"
-               server-lib="libBLSURFEngine.so"
-               gui-lib="libBLSURFPluginGUI.so">
+               idl-module="BLSURFPlugin"
+               server-lib="BLSURFEngine"
+               gui-lib="BLSURFPluginGUI">
   <hypotheses>
-    <hypothesis type="BLSURF_Parameters"
-               label-id="BLSURF Parameters"
+
+    <hypothesis type="MG-CADSurf Parameters"
+               label-id="MG-CADSurf Parameters"
+               icon-id="mesh_hypo_BLSURF.png"
+               dim="2">
+      <python-wrap>
+        <accumulative-methods>
+          SetOptionValue,
+          SetPreCADOptionValue,
+          UnsetOption,
+          UnsetPreCADOption,
+          AddOption,
+          AddPreCADOption,
+          SetSizeMap,
+          SetConstantSizeMap,
+          UnsetSizeMap,
+          SetAttractor,
+          UnsetAttractor,
+          SetAttractorGeom,
+          UnsetAttractorGeom,
+          SetEnforcedVertex,
+          SetEnforcedVertexNamed,
+          SetEnforcedVertexGeom,
+          SetEnforcedVertexWithGroup,
+          SetEnforcedVertexNamedWithGroup,
+          SetEnforcedVertexGeomWithGroup,
+          UnsetEnforcedVertex,
+          UnsetEnforcedVertexGeom,
+          UnsetEnforcedVertices,
+          AddEnforcedVertex,
+          AddEnforcedVertexNamed,
+          AddEnforcedVertexGeom,
+          AddEnforcedVertexWithGroup,
+          AddEnforcedVertexNamedWithGroup,
+          AddEnforcedVertexGeomWithGroup,
+          RemoveEnforcedVertex,
+          RemoveEnforcedVertexGeom,
+          RemoveEnforcedVertices,
+          AddPreCadFacesPeriodicity
+        </accumulative-methods>
+      </python-wrap>
+    </hypothesis>
+
+    <hypothesis type="MG-CADSurf Parameters_NOGEOM"
+               label-id="MG-CADSurf Parameters"
                icon-id="mesh_hypo_BLSURF.png"
-               dim="2"/>
+               dim="2">
+      <python-wrap>
+        <accumulative-methods>
+          SetOptionValue,
+          SetPreCADOptionValue,
+          UnsetOption,
+          UnsetPreCADOption,
+          AddOption,
+          AddPreCADOption,
+          SetSizeMap,
+          SetConstantSizeMap,
+          UnsetSizeMap,
+          SetAttractor,
+          UnsetAttractor,
+          SetAttractorGeom,
+          UnsetAttractorGeom,
+          SetEnforcedVertex,
+          SetEnforcedVertexNamed,
+          SetEnforcedVertexGeom,
+          SetEnforcedVertexWithGroup,
+          SetEnforcedVertexNamedWithGroup,
+          SetEnforcedVertexGeomWithGroup,
+          UnsetEnforcedVertex,
+          UnsetEnforcedVertexGeom,
+          UnsetEnforcedVertices,
+          AddEnforcedVertex,
+          AddEnforcedVertexNamed,
+          AddEnforcedVertexGeom,
+          AddEnforcedVertexWithGroup,
+          AddEnforcedVertexNamedWithGroup,
+          AddEnforcedVertexGeomWithGroup,
+          RemoveEnforcedVertex,
+          RemoveEnforcedVertexGeom,
+          RemoveEnforcedVertices,
+          AddPreCadFacesPeriodicity
+        </accumulative-methods>
+      </python-wrap>
+    </hypothesis>
+
   </hypotheses>
   <algorithms>
-    <algorithm type="BLSURF"
-               label-id="BLSURF"
+
+    <algorithm type="MG-CADSurf"
+               label-id="MG-CADSurf"
                icon-id="mesh_algo_BLSURF.png"
-               hypos="BLSURF_Parameters"
+               group-id ="1"
+               priority ="30"
+               opt-hypos="MG-CADSurf Parameters,ViscousLayers2D"
                output="TRIA,QUAD"
-               dim="2"/>
+               dim="2"
+              support-submeshes="true">
+      <python-wrap>
+        <algo>MG-CADSurf=Triangle(algo=smeshBuilder.MG_CADSurf)</algo>
+        <hypo>MG-CADSurf Parameters=Parameters()</hypo>
+        <hypo>ViscousLayers2D=ViscousLayers2D(SetTotalThickness(),SetNumberLayers(),SetStretchFactor(),SetIgnoreEdges())</hypo>
+      </python-wrap>
+    </algorithm>
+
+    <algorithm type="MG-CADSurf_NOGEOM"
+               label-id="MG-CADSurf"
+               icon-id="mesh_algo_BLSURF.png"
+               opt-hypos="MG-CADSurf Parameters_NOGEOM"
+               output="TRIA,QUAD"
+               need-geom="never"
+               dim="2">
+      <python-wrap>
+        <algo>MG-CADSurf_NOGEOM=Triangle(algo=smeshBuilder.MG_CADSurf)</algo>
+        <hypo>MG-CADSurf Parameters_NOGEOM=Parameters()</hypo>
+      </python-wrap>
+    </algorithm>
+
   </algorithms>
 </meshers-group>