Salome HOME
[Bug PAL7784] REGR: wrong Export-Import Mesh in med
[modules/smesh.git] / idl / SMESH_Mesh.idl
index 77d9d186e0bd30374e2f5e7c3c958637e2db57b4..f34baa99bef2f4042ff117e2a1ec5b87bef198bf 100644 (file)
@@ -325,6 +325,10 @@ module SMESH
 
     /*!
      * Export Mesh to MED Formats
+     * @params
+     * - auto_groups : boolean parameter for creating/not creating
+     *   the groups Group_On_All_Nodes, Group_On_All_Faces, ... ;
+     *   the typical use is auto_groups=false.
      */
     void ExportToMED( in string file, in boolean auto_groups, in MED_VERSION theVersion )
       raises (SALOME::SALOME_Exception);
@@ -535,23 +539,33 @@ module SMESH
                              in DirStruct       StepVector,
                              in long            NbOfSteps);
 
-    void ExtrusionAlongPath(in long_array        IDsOfElements,
-                           in SMESH_Mesh        PathMesh,
-                           in GEOM::GEOM_Object PathShape,
-                           in long              NodeStart,
-                           in boolean           HasAngles,
-                           in double_array      Angles,
-                           in boolean           HasRefPoint,
-                           in PointStruct       RefPoint);
-
-    void ExtrusionAlongPathObject(in SMESH_IDSource    theObject,
-                                 in SMESH_Mesh        PathMesh,
-                                 in GEOM::GEOM_Object PathShape,
-                                 in long              NodeStart,
-                                 in boolean           HasAngles,
-                                 in double_array      Angles,
-                                 in boolean           HasRefPoint,
-                                 in PointStruct       RefPoint);
+    enum Extrusion_Error {
+      EXTR_OK,
+      EXTR_NO_ELEMENTS, 
+      EXTR_PATH_NOT_EDGE,
+      EXTR_BAD_PATH_SHAPE,
+      EXTR_BAD_STARTING_NODE,
+      EXTR_BAD_ANGLES_NUMBER,
+      EXTR_CANT_GET_TANGENT
+      };
+
+    Extrusion_Error ExtrusionAlongPath(in long_array        IDsOfElements,
+                                      in SMESH_Mesh        PathMesh,
+                                      in GEOM::GEOM_Object PathShape,
+                                      in long              NodeStart,
+                                      in boolean           HasAngles,
+                                      in double_array      Angles,
+                                      in boolean           HasRefPoint,
+                                      in PointStruct       RefPoint);
+
+    Extrusion_Error ExtrusionAlongPathObject(in SMESH_IDSource    theObject,
+                                            in SMESH_Mesh        PathMesh,
+                                            in GEOM::GEOM_Object PathShape,
+                                            in long              NodeStart,
+                                            in boolean           HasAngles,
+                                            in double_array      Angles,
+                                            in boolean           HasRefPoint,
+                                            in PointStruct       RefPoint);
 
     enum MirrorType { POINT, AXIS, PLANE };