Salome HOME
23080: [CEA 1497] Do not merge a middle node in quadratic with the extreme nodes...
[modules/smesh.git] / idl / SMESH_MeshEditor.idl
1 // Copyright (C) 2007-2015  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 //  File   : SMESH_MeshEditor.idl
23
24 #ifndef _SMESH_MESHEDITOR_IDL_
25 #define _SMESH_MESHEDITOR_IDL_
26
27 #include "SMESH_Mesh.idl"
28 #include "SMESH_Gen.idl"
29
30 module SMESH
31 {
32   enum Bnd_Dimension { BND_2DFROM3D, BND_1DFROM3D, BND_1DFROM2D };
33
34   /*!
35    * This interface makes modifications on the Mesh - removing elements and nodes etc.
36    */
37   interface NumericalFunctor;
38
39   interface SMESH_MeshEditor
40   {
41    /*!
42     * Returns a mesh subject to edition
43     */
44     SMESH_Mesh GetMesh();
45
46    /*!
47     * Return data of mesh edition preview which is computed provided
48     * that the editor was obtained through SMESH_Mesh::GetMeshEditPreviewer()
49     */
50     MeshPreviewStruct GetPreviewData() raises (SALOME::SALOME_Exception);
51
52    /*!
53     * If during last operation of MeshEditor some nodes were
54     * created, this method returns list of their IDs, if new nodes
55     * not created - returns empty list
56     */
57     long_array GetLastCreatedNodes() raises (SALOME::SALOME_Exception);
58
59    /*!
60     * If during last operation of MeshEditor some elements were
61     * created, this method returns list of their IDs, if new elements
62     * not created - returns empty list
63     */
64     long_array GetLastCreatedElems() raises (SALOME::SALOME_Exception);
65
66     /*!
67      * \brief Clears sequences of last created elements and nodes 
68      */
69     void ClearLastCreated() raises (SALOME::SALOME_Exception);
70
71     /*!
72      * \brief Returns description of an error/warning occured during the last operation
73      */
74     ComputeError GetLastError() raises (SALOME::SALOME_Exception);
75
76     /*!
77      * \brief Wrap a sequence of ids in a SMESH_IDSource
78      * \param IDsOfElements list of mesh elements identifiers
79      * \return new ID source object
80      */
81     SMESH_IDSource MakeIDSource(in long_array IDsOfElements, in ElementType type);
82
83     /*!
84      * \brief Remove mesh elements specified by their identifiers.
85      * \param IDsOfElements list of mesh elements identifiers
86      * \return \c true if elements are correctly removed or \c false otherwise
87      */
88     boolean RemoveElements(in long_array IDsOfElements) raises (SALOME::SALOME_Exception);
89
90     /*!
91      * \brief Remove mesh nodes specified by their identifiers.
92      * \param IDsOfNodes list of mesh nodes identifiers
93      * \return \c true if nodes are correctly removed or \c false otherwise
94      */
95     boolean RemoveNodes(in long_array IDsOfNodes) raises (SALOME::SALOME_Exception);
96
97     /*!
98      * \brief Remove all orphan nodes.
99      * \return number of removed nodes
100      */
101     long RemoveOrphanNodes() raises (SALOME::SALOME_Exception);
102
103     /*!
104      * \brief Add a new node.
105      * \param x X coordinate of new node
106      * \param y Y coordinate of new node
107      * \param z Z coordinate of new node
108      * \return integer identifier of new node
109      */
110     long AddNode(in double x, in double y, in double z) raises (SALOME::SALOME_Exception);
111
112     /*!
113      *  Create a 0D element on the given node.
114      *  \param IdOfNode Node IDs for creation of element.
115      */
116     long Add0DElement(in long IDOfNode) raises (SALOME::SALOME_Exception);
117
118     /*!
119      *  Create a ball element on the given node.
120      *  \param IdOfNode Node IDs for creation of element.
121      */
122     long AddBall(in long IDOfNode, in double diameter) raises (SALOME::SALOME_Exception);
123
124     /*!
125      *  Create an edge, either linear and quadratic (this is determed
126      *  by number of given nodes, two or three).
127      *  \param IdsOfNodes List of node IDs for creation of element.
128      *  Needed order of nodes in this list corresponds to description
129      *  of MED. This description is located by the following link:
130      *   http://www.salome-platform.org/salome2/web_med_internet/logiciels/medV2.2.2_doc_html/html/modele_de_donnees.html#3.
131      */
132     long AddEdge(in long_array IDsOfNodes) raises (SALOME::SALOME_Exception);
133
134     /*!
135      *  Create face, either linear and quadratic (this is determed
136      *  by number of given nodes).
137      *  \param IdsOfNodes List of node IDs for creation of element.
138      *  Needed order of nodes in this list corresponds to description
139      *  of MED. This description is located by the following link:
140      *   http://www.salome-platform.org/salome2/web_med_internet/logiciels/medV2.2.2_doc_html/html/modele_de_donnees.html#3.
141      */
142     long AddFace(in long_array IDsOfNodes) raises (SALOME::SALOME_Exception);
143
144     long AddPolygonalFace(in long_array IdsOfNodes) raises (SALOME::SALOME_Exception);
145
146     /*!
147      * Create a quadratic polygonal face
148      *  \param IdsOfNodes - nodes of the polygon; corner nodes follow first
149      *  \return long - ID of a new polygon
150      */
151     long AddQuadPolygonalFace(in long_array IdsOfNodes) raises (SALOME::SALOME_Exception);
152
153     /*!
154      *  Create volume, either linear and quadratic (this is determed
155      *  by number of given nodes).
156      *  \param IdsOfNodes List of node IDs for creation of element.
157      *  Needed order of nodes in this list corresponds to description
158      *  of MED. This description is located by the following link:
159      *   http://www.salome-platform.org/salome2/web_med_internet/logiciels/medV2.2.2_doc_html/html/modele_de_donnees.html#3.
160      */
161     long AddVolume(in long_array IDsOfNodes) raises (SALOME::SALOME_Exception);
162
163     /*!
164      *  Create volume of many faces, giving nodes for each face.
165      *  \param IdsOfNodes List of node IDs for volume creation face by face.
166      *  \param Quantities List of integer values, Quantities[i]
167      *         gives quantity of nodes in face number i.
168      */
169     long AddPolyhedralVolume (in long_array IdsOfNodes,
170                               in long_array Quantities) raises (SALOME::SALOME_Exception);
171     /*!
172      *  Create volume of many faces, giving IDs of existing faces.
173      *  \param IdsOfFaces List of face IDs for volume creation.
174      *  \note The created volume will refer only to nodes
175      *        of the given faces, not to the faces itself.
176      */
177     long AddPolyhedralVolumeByFaces (in long_array IdsOfFaces) raises (SALOME::SALOME_Exception);
178
179     /*!
180      * Create 0D elements on all nodes of the given object except those 
181      * nodes on which a 0D element already exists.
182      *  \param theObject object on whose nodes 0D elements will be created.
183      *  \param theGroupName optional name of a group to add 0D elements created
184      *         and/or found on nodes of \a theObject.
185      *  \return an object (a new group or a temporary SMESH_IDSource) holding
186      *          ids of new and/or found 0D elements.
187      */
188     SMESH_IDSource Create0DElementsOnAllNodes(in SMESH_IDSource theObject,
189                                               in string         theGroupName)
190       raises (SALOME::SALOME_Exception);
191
192     /*!
193      * \brief Bind a node to a vertex
194       * \param NodeID - node ID
195       * \param VertexID - vertex ID available through GEOM_Object.GetSubShapeIndices()[0]
196      */
197     void SetNodeOnVertex(in long NodeID, in long VertexID)
198       raises (SALOME::SALOME_Exception);
199     /*!
200      * \brief Store node position on an edge
201       * \param NodeID - node ID
202       * \param EdgeID - edge ID available through GEOM_Object.GetSubShapeIndices()[0]
203       * \param paramOnEdge - parameter on edge where the node is located
204      */
205     void SetNodeOnEdge(in long NodeID, in long EdgeID, in double paramOnEdge)
206       raises (SALOME::SALOME_Exception);
207     /*!
208      * \brief Store node position on a face
209       * \param NodeID - node ID
210       * \param FaceID - face ID available through GEOM_Object.GetSubShapeIndices()[0]
211       * \param u - U parameter on face where the node is located
212       * \param v - V parameter on face where the node is located
213      */
214     void SetNodeOnFace(in long NodeID, in long FaceID, in double u, in double v)
215       raises (SALOME::SALOME_Exception);
216     /*!
217      * \brief Bind a node to a solid
218       * \param NodeID - node ID
219       * \param SolidID - vertex ID available through GEOM_Object.GetSubShapeIndices()[0]
220      */
221     void SetNodeInVolume(in long NodeID, in long SolidID)
222       raises (SALOME::SALOME_Exception);
223     /*!
224      * \brief Bind an element to a shape
225       * \param ElementID - element ID
226       * \param ShapeID - shape ID available through GEOM_Object.GetSubShapeIndices()[0]
227      */
228     void SetMeshElementOnShape(in long ElementID, in long ShapeID)
229       raises (SALOME::SALOME_Exception);
230
231
232     boolean MoveNode(in long NodeID, in double x, in double y, in double z)
233       raises (SALOME::SALOME_Exception);
234
235     boolean InverseDiag(in long NodeID1, in long NodeID2) 
236       raises (SALOME::SALOME_Exception);
237
238     boolean DeleteDiag(in long NodeID1, in long NodeID2) 
239       raises (SALOME::SALOME_Exception);
240
241     boolean Reorient(in long_array IDsOfElements) 
242       raises (SALOME::SALOME_Exception);
243
244     boolean ReorientObject(in SMESH_IDSource theObject) 
245       raises (SALOME::SALOME_Exception);
246     /*!
247      * \brief Reorient faces contained in \a the2Dgroup.
248      * \param the2Dgroup - the mesh or its part to reorient
249      * \param theDirection - desired direction of normal of \a theFace
250      * \param theFace - ID of face whose orientation is checked.
251      *        It can be < 1 then \a thePoint is used to find a face.
252      * \param thePoint - is used to find a face if \a theFace < 1.
253      * \return number of reoriented faces.
254      */
255     long Reorient2D(in SMESH_IDSource the2Dgroup,
256                     in DirStruct      theDirection,
257                     in long           theFace,
258                     in PointStruct    thePoint) raises (SALOME::SALOME_Exception);
259     /*!
260      * \brief Reorient faces basing on orientation of adjacent volumes.
261      * \param faces - a list of objects containing face to reorient
262      * \param volumes - an object containing volumes.
263      * \param outsideNormal - to orient faces to have their normal 
264      *        pointing either \a outside or \a inside the adjacent volumes.
265      * \return number of reoriented faces.
266      */
267     long Reorient2DBy3D(in ListOfIDSources faces,
268                         in SMESH_IDSource  volumes,
269                         in boolean         outsideNormal) raises (SALOME::SALOME_Exception);
270
271     /*!
272      * \brief Fuse neighbour triangles into quadrangles.
273      * \param IDsOfElements Ids of triangles to be fused.
274      * \param theCriterion Is used to choose a neighbour to fuse with.
275      * \param theMaxAngle  Is a max angle between element normals at which fusion
276      *                     is still performed; theMaxAngle is mesured in radians.
277      * \return \c true in case of success, FALSE otherwise.
278      */
279     boolean TriToQuad (in long_array       IDsOfElements,
280                        in NumericalFunctor Criterion,
281                        in double           MaxAngle) raises (SALOME::SALOME_Exception);
282     /*!
283      * \brief Fuse neighbour triangles into quadrangles.
284      *
285      * Behaves like the above method, taking a list of elements from \a theObject
286      */
287     boolean TriToQuadObject (in SMESH_IDSource   theObject,
288                              in NumericalFunctor Criterion,
289                              in double           MaxAngle) raises (SALOME::SALOME_Exception);
290
291     /*!
292      * \brief Split quadrangles into triangles.
293      * \param IDsOfElements Ids of quadrangles to split.
294      * \param theCriterion Is used to choose a diagonal for splitting.
295      * \return TRUE in case of success, FALSE otherwise.
296      */
297     boolean QuadToTri (in long_array       IDsOfElements,
298                        in NumericalFunctor Criterion) raises (SALOME::SALOME_Exception);
299     /*!
300      * \brief Split quadrangles into triangles.
301      *
302      * Behaves like the above method, taking a list of elements from \a theObject
303      */
304     boolean QuadToTriObject (in SMESH_IDSource   theObject,
305                              in NumericalFunctor Criterion) raises (SALOME::SALOME_Exception);
306     /*!
307      * \brief Split each of quadrangles into 4 triangles.
308      * \param theQuads Container of quadrangles to split.
309      */
310     void QuadTo4Tri (in SMESH_IDSource theQuads) raises (SALOME::SALOME_Exception);
311
312     /*!
313      * \brief Split quadrangles into triangles.
314      * \param theElems  The faces to be splitted.
315      * \param the13Diag Is used to choose a diagonal for splitting.
316      * \return TRUE in case of success, FALSE otherwise.
317      */
318     boolean SplitQuad (in long_array IDsOfElements,
319                        in boolean    Diag13) raises (SALOME::SALOME_Exception);
320     /*!
321      * \brief Split quadrangles into triangles.
322      *
323      * Behaves like the above method, taking list of elements from \a theObject
324      */
325     boolean SplitQuadObject (in SMESH_IDSource theObject,
326                              in boolean        Diag13) raises (SALOME::SALOME_Exception);
327
328     /*!
329      *  Find better splitting of the given quadrangle.
330      *  \param IDOfQuad  ID of the quadrangle to be splitted.
331      *  \param Criterion A criterion to choose a diagonal for splitting.
332      *  \return 1 if 1-3 diagonal is better, 2 if 2-4
333      *          diagonal is better, 0 if error occurs.
334      */
335     long BestSplit (in long             IDOfQuad,
336                     in NumericalFunctor Criterion) raises (SALOME::SALOME_Exception);
337
338     /*!
339      * \brief Split volumic elements into tetrahedrons
340      *  \param elems - elements to split
341      *  \param methodFlags - flags passing splitting method:
342      *         1 - split the hexahedron into 5 tetrahedrons
343      *         2 - split the hexahedron into 6 tetrahedrons
344      *         3 - split the hexahedron into 24 tetrahedrons
345      */
346     void SplitVolumesIntoTetra(in SMESH_IDSource elems, in short methodFlags)
347       raises (SALOME::SALOME_Exception);
348
349     /*!
350      * \brief Split hexahedra into triangular prisms
351      *  \param elems - elements to split
352      *  \param startHexPoint - a point used to find a hexahedron for which \a facetToSplitNormal
353      *         gives a normal vector defining facets to split into triangles.
354      *  \param facetToSplitNormal - normal used to find a facet of hexahedron
355      *         to split into triangles.
356      *  \param methodFlags - flags passing splitting method:
357      *         1 - split the hexahedron into 2 prisms
358      *         2 - split the hexahedron into 4 prisms
359      *  \param allDomains - if \c False, only hexahedra adjacent to one closest
360      *         to \a facetToSplitNormal location are split, else \a facetToSplitNormal
361      *         is used to find the facet to split in all domains present in \a elems.
362      */
363     void SplitHexahedraIntoPrisms(in SMESH_IDSource     elems, 
364                                   in SMESH::PointStruct startHexPoint,
365                                   in SMESH::DirStruct   facetToSplitNormal,
366                                   in short              methodFlags,
367                                   in boolean            allDomains)
368       raises (SALOME::SALOME_Exception);
369
370
371     enum Smooth_Method { LAPLACIAN_SMOOTH, CENTROIDAL_SMOOTH };
372
373     boolean Smooth(in long_array    IDsOfElements,
374                    in long_array    IDsOfFixedNodes,
375                    in long          MaxNbOfIterations,
376                    in double        MaxAspectRatio,
377                    in Smooth_Method Method) raises (SALOME::SALOME_Exception);
378
379     boolean SmoothObject(in SMESH_IDSource  theObject,
380                          in long_array      IDsOfFixedNodes,
381                          in long            MaxNbOfIterations,
382                          in double          MaxAspectRatio,
383                          in Smooth_Method   Method) raises (SALOME::SALOME_Exception);
384
385     boolean SmoothParametric(in long_array    IDsOfElements,
386                              in long_array    IDsOfFixedNodes,
387                              in long          MaxNbOfIterations,
388                              in double        MaxAspectRatio,
389                              in Smooth_Method Method) raises (SALOME::SALOME_Exception);
390
391     boolean SmoothParametricObject(in SMESH_IDSource  theObject,
392                                    in long_array      IDsOfFixedNodes,
393                                    in long            MaxNbOfIterations,
394                                    in double          MaxAspectRatio,
395                                    in Smooth_Method   Method) raises (SALOME::SALOME_Exception);
396
397     void ConvertToQuadratic(in boolean theForce3d) 
398       raises (SALOME::SALOME_Exception);
399     void ConvertToQuadraticObject(in boolean        theForce3d, 
400                                   in SMESH_IDSource theObject) 
401       raises (SALOME::SALOME_Exception);
402     
403     boolean ConvertFromQuadratic() 
404       raises (SALOME::SALOME_Exception);
405     void    ConvertFromQuadraticObject(in SMESH_IDSource theObject)
406       raises (SALOME::SALOME_Exception);
407
408     void ConvertToBiQuadratic(in boolean        theForce3d,
409                               in SMESH_IDSource theObject)
410       raises (SALOME::SALOME_Exception);
411
412     void RenumberNodes() raises (SALOME::SALOME_Exception);
413
414     void RenumberElements() raises (SALOME::SALOME_Exception);
415
416     /*!
417      * \brief Generate dim+1 elements by rotation of the object around axis
418      *  \param Nodes - nodes to revolve: a list including groups, sub-meshes or a mesh
419      *  \param Edges - edges to revolve: a list including groups, sub-meshes or a mesh
420      *  \param Faces - faces to revolve: a list including groups, sub-meshes or a mesh
421      *  \param Axis - rotation axis
422      *  \param AngleInRadians - rotation angle
423      *  \param NbOfSteps - number of elements to generate from one element
424      *  \param ToMakeGroups - if true, new elements will be included into new groups
425      *         corresponding to groups the input elements included in.
426      *  \return ListOfGroups - new groups craeted if \a ToMakeGroups is true
427      */
428     ListOfGroups RotationSweepObjects(in ListOfIDSources Nodes,
429                                       in ListOfIDSources Edges,
430                                       in ListOfIDSources Faces,
431                                       in AxisStruct      Axis,
432                                       in double          AngleInRadians,
433                                       in long            NbOfSteps,
434                                       in double          Tolerance,
435                                       in boolean         ToMakeGroups)
436       raises (SALOME::SALOME_Exception);
437
438     /*!
439      * \brief Generate dim+1 elements by extrusion of elements along vector
440      *  \param nodes - nodes to extrude: a list including groups, sub-meshes or a mesh
441      *  \param edges - edges to extrude: a list including groups, sub-meshes or a mesh
442      *  \param faces - faces to extrude: a list including groups, sub-meshes or a mesh
443      *  \param stepVector - vector giving direction and distance of an extrusion step
444      *  \param nbOfSteps - number of elements to generate from one element
445      *  \param toMakeGroups - if true, new elements will be included into new groups
446      *         corresponding to groups the input elements included in.
447      *  \return ListOfGroups - new groups craeted if \a toMakeGroups is true
448      */
449     ListOfGroups ExtrusionSweepObjects(in ListOfIDSources nodes,
450                                        in ListOfIDSources edges,
451                                        in ListOfIDSources faces,
452                                        in DirStruct       stepVector,
453                                        in long            nbOfSteps,
454                                        in boolean         toMakeGroups)
455       raises (SALOME::SALOME_Exception);
456
457     /*! Generates new elements by extrusion along the normal to a discretized surface or wire
458      */
459     ListOfGroups ExtrusionByNormal(in ListOfIDSources theObjects,
460                                    in double          stepSize,
461                                    in long            nbOfSteps,
462                                    in boolean         byAverageNormal,
463                                    in boolean         useInputElemsOnly,
464                                    in boolean         makeGroups,
465                                    in short           dim)
466       raises (SALOME::SALOME_Exception);
467
468     /*!
469      * Generate new elements by extrusion of theElements
470      * by StepVector by NbOfSteps
471      *  \param ExtrFlags set flags for performing extrusion
472      *  \param SewTolerance - uses for comparing locations of nodes if flag
473      *         EXTRUSION_FLAG_SEW is set
474      *  \param ToMakeGroups - if true, new elements will be included into new groups
475      *         corresponding to groups the input elements included in.
476      *  \return ListOfGroups - new groups craeted if \a ToMakeGroups is true
477      */
478     ListOfGroups AdvancedExtrusion(in long_array IDsOfElements,
479                                    in DirStruct  StepVector,
480                                    in long       NbOfSteps,
481                                    in long       ExtrFlags,
482                                    in double     SewTolerance,
483                                    in boolean    ToMakeGroups)
484       raises (SALOME::SALOME_Exception);
485
486     enum Extrusion_Error {
487       EXTR_OK,
488       EXTR_NO_ELEMENTS,
489       EXTR_PATH_NOT_EDGE,
490       EXTR_BAD_PATH_SHAPE,
491       EXTR_BAD_STARTING_NODE,
492       EXTR_BAD_ANGLES_NUMBER,
493       EXTR_CANT_GET_TANGENT
494     };
495
496     ListOfGroups ExtrusionAlongPathObjects(in ListOfIDSources Nodes,
497                                            in ListOfIDSources Edges,
498                                            in ListOfIDSources Faces,
499                                            in SMESH_IDSource    Path,
500                                            in GEOM::GEOM_Object PathShape,
501                                            in long              NodeStart,
502                                            in boolean           HasAngles,
503                                            in double_array      Angles,
504                                            in boolean           LinearVariation,
505                                            in boolean           HasRefPoint,
506                                            in PointStruct       RefPoint,
507                                            in boolean           MakeGroups,
508                                            out Extrusion_Error  Error)
509       raises (SALOME::SALOME_Exception);
510
511    /*!
512     * Compute rotation angles for ExtrusionAlongPath as linear variation
513     * of given angles along path steps
514     * param PathMesh mesh containing a 1D sub-mesh on the edge, along
515     *                which proceeds the extrusion
516     * param PathShape is shape(edge); as the mesh can be complex, the edge
517     *                 is used to define the sub-mesh for the path
518     */
519     double_array LinearAnglesVariation(in SMESH_Mesh        PathMesh,
520                                        in GEOM::GEOM_Object PathShape,
521                                        in double_array      Angles);
522
523     enum MirrorType { POINT, AXIS, PLANE };
524
525     void Mirror (in long_array IDsOfElements,
526                  in AxisStruct Mirror,
527                  in MirrorType Type,
528                  in boolean    Copy) 
529       raises (SALOME::SALOME_Exception);
530     ListOfGroups MirrorMakeGroups (in long_array IDsOfElements,
531                                    in AxisStruct Mirror,
532                                    in MirrorType Type) 
533       raises (SALOME::SALOME_Exception);
534     SMESH_Mesh MirrorMakeMesh (in long_array IDsOfElements,
535                                in AxisStruct Mirror,
536                                in MirrorType Type,
537                                in boolean    CopyGroups,
538                                in string     MeshName) 
539       raises (SALOME::SALOME_Exception);
540
541     void MirrorObject (in SMESH_IDSource theObject,
542                        in AxisStruct     Mirror,
543                        in MirrorType     Type,
544                        in boolean        Copy) 
545       raises (SALOME::SALOME_Exception);
546     ListOfGroups MirrorObjectMakeGroups (in SMESH_IDSource theObject,
547                                          in AxisStruct     Mirror,
548                                          in MirrorType     Type) 
549       raises (SALOME::SALOME_Exception);
550     SMESH_Mesh MirrorObjectMakeMesh (in SMESH_IDSource theObject,
551                                      in AxisStruct     Mirror,
552                                      in MirrorType     Type,
553                                      in boolean        CopyGroups,
554                                      in string         MeshName) 
555       raises (SALOME::SALOME_Exception);
556
557     void Translate (in long_array IDsOfElements,
558                     in DirStruct  Vector,
559                     in boolean    Copy) 
560       raises (SALOME::SALOME_Exception);
561     ListOfGroups TranslateMakeGroups (in long_array IDsOfElements,
562                                       in DirStruct  Vector) 
563       raises (SALOME::SALOME_Exception);
564     SMESH_Mesh TranslateMakeMesh (in long_array IDsOfElements,
565                                   in DirStruct  Vector,
566                                   in boolean    CopyGroups,
567                                   in string     MeshName) 
568       raises (SALOME::SALOME_Exception);
569
570     void TranslateObject (in SMESH_IDSource theObject,
571                           in DirStruct      Vector,
572                           in boolean        Copy) 
573       raises (SALOME::SALOME_Exception);
574     ListOfGroups TranslateObjectMakeGroups (in SMESH_IDSource theObject,
575                                             in DirStruct      Vector) 
576       raises (SALOME::SALOME_Exception);
577     SMESH_Mesh TranslateObjectMakeMesh (in SMESH_IDSource theObject,
578                                         in DirStruct      Vector,
579                                         in boolean        CopyGroups,
580                                         in string         MeshName) 
581       raises (SALOME::SALOME_Exception);
582
583     void Scale (in SMESH_IDSource theObject,
584                 in PointStruct    thePoint,
585                 in double_array   theScaleFact,
586                 in boolean        Copy) 
587       raises (SALOME::SALOME_Exception);
588     ListOfGroups ScaleMakeGroups (in SMESH_IDSource theObject,
589                                   in PointStruct    thePoint,
590                                   in double_array   theScaleFact) 
591       raises (SALOME::SALOME_Exception);
592     SMESH_Mesh ScaleMakeMesh (in SMESH_IDSource theObject,
593                               in PointStruct    thePoint,
594                               in double_array   theScaleFact,
595                               in boolean        CopyGroups,
596                               in string         MeshName) 
597       raises (SALOME::SALOME_Exception);
598
599     void Rotate (in long_array IDsOfElements,
600                  in AxisStruct Axis,
601                  in double     AngleInRadians,
602                  in boolean    Copy) 
603       raises (SALOME::SALOME_Exception);
604     ListOfGroups RotateMakeGroups (in long_array IDsOfElements,
605                                    in AxisStruct Axis,
606                                    in double     AngleInRadians) 
607       raises (SALOME::SALOME_Exception);
608     SMESH_Mesh RotateMakeMesh (in long_array IDsOfElements,
609                                in AxisStruct Axis,
610                                in double     AngleInRadians,
611                                in boolean    CopyGroups,
612                                in string     MeshName)
613       raises (SALOME::SALOME_Exception);
614
615     void RotateObject (in SMESH_IDSource theObject,
616                        in AxisStruct     Axis,
617                        in double         AngleInRadians,
618                        in boolean        Copy)
619       raises (SALOME::SALOME_Exception);
620     ListOfGroups RotateObjectMakeGroups (in SMESH_IDSource theObject,
621                                          in AxisStruct     Axis,
622                                          in double         AngleInRadians)
623       raises (SALOME::SALOME_Exception);
624     SMESH_Mesh RotateObjectMakeMesh (in SMESH_IDSource theObject,
625                                      in AxisStruct     Axis,
626                                      in double         AngleInRadians,
627                                      in boolean        CopyGroups,
628                                      in string         MeshName)
629       raises (SALOME::SALOME_Exception);
630
631     void FindCoincidentNodes (in  double              Tolerance,
632                               out array_of_long_array GroupsOfNodes,
633                               in  boolean             SeparateCornersAndMedium)
634       raises (SALOME::SALOME_Exception);
635
636     void FindCoincidentNodesOnPart (in  SMESH_IDSource      SubMeshOrGroup,
637                                     in  double              Tolerance,
638                                     out array_of_long_array GroupsOfNodes,
639                                     in  boolean             SeparateCornersAndMedium)
640       raises (SALOME::SALOME_Exception);
641
642     void FindCoincidentNodesOnPartBut (in  SMESH_IDSource      SubMeshOrGroup,
643                                        in  double              Tolerance,
644                                        out array_of_long_array GroupsOfNodes,
645                                        in  ListOfIDSources     ExceptSubMeshOrGroups,
646                                        in  boolean             SeparateCornersAndMedium)
647       raises (SALOME::SALOME_Exception);
648
649     void MergeNodes (in array_of_long_array GroupsOfNodes)
650       raises (SALOME::SALOME_Exception);
651
652     /*!
653      * \brief Find elements built on the same nodes.
654      * \param MeshOrSubMeshOrGroup Mesh or SubMesh, or Group of elements for searching.
655      * \return List of groups of equal elements.
656      */
657     void FindEqualElements (in  SMESH_IDSource      MeshOrSubMeshOrGroup,
658                             out array_of_long_array GroupsOfElementsID) 
659       raises (SALOME::SALOME_Exception);
660
661     /*!
662      * \brief Merge elements in each given group.
663      * \param GroupsOfElementsID Groups of elements for merging.
664      */
665     void MergeElements(in array_of_long_array GroupsOfElementsID) 
666       raises (SALOME::SALOME_Exception);
667
668     /*!
669      * \brief Merge equal elements in the whole mesh.
670      */
671     void MergeEqualElements() 
672       raises (SALOME::SALOME_Exception);
673
674     /*!
675      * If the given ID is a valid node ID (nodeID > 0), just move this node, else
676      * move the node closest to the point to point's location and return ID of the node
677      */
678     long MoveClosestNodeToPoint(in double x, in double y, in double z, in long nodeID) 
679       raises (SALOME::SALOME_Exception);
680
681     /*!
682      * Return ID of node closest to a given point
683      */
684     long FindNodeClosestTo(in double x, in double y, in double z) 
685       raises (SALOME::SALOME_Exception);
686
687     /*!
688      * Return elements of given type where the given point is IN or ON.
689      *
690      * 'ALL' type means elements of any type excluding nodes and 0D elements
691      */
692     long_array FindElementsByPoint(in double x, in double y, in double z, in ElementType type) 
693       raises (SALOME::SALOME_Exception);
694
695     /*!
696      * Searching among the given elements, return elements of given type 
697      * where the given point is IN or ON.
698      *
699      * 'ALL' type means elements of any type excluding nodes and 0D elements
700      */
701     long_array FindAmongElementsByPoint(in SMESH_IDSource elements,
702                                         in double x, in double y, in double z, 
703                                         in ElementType type) 
704       raises (SALOME::SALOME_Exception);
705
706     /*!
707      * Return point state in a closed 2D mesh in terms of TopAbs_State enumeration.
708      * TopAbs_UNKNOWN state means that either mesh is wrong or the analysis fails.
709      */
710     short GetPointState(in double x, in double y, in double z) 
711       raises (SALOME::SALOME_Exception);
712
713     enum Sew_Error {
714       SEW_OK,
715       SEW_BORDER1_NOT_FOUND,
716       SEW_BORDER2_NOT_FOUND,
717       SEW_BOTH_BORDERS_NOT_FOUND,
718       SEW_BAD_SIDE_NODES,
719       SEW_VOLUMES_TO_SPLIT,
720       // for SewSideElements() only:
721       SEW_DIFF_NB_OF_ELEMENTS,
722       SEW_TOPO_DIFF_SETS_OF_ELEMENTS,
723       SEW_BAD_SIDE1_NODES,
724       SEW_BAD_SIDE2_NODES
725       };
726
727     Sew_Error SewFreeBorders (in long FirstNodeID1,
728                               in long SecondNodeID1,
729                               in long LastNodeID1,
730                               in long FirstNodeID2,
731                               in long SecondNodeID2,
732                               in long LastNodeID2,
733                               in boolean CreatePolygons,
734                               in boolean CreatePolyedrs) 
735       raises (SALOME::SALOME_Exception);
736
737     Sew_Error SewConformFreeBorders (in long FirstNodeID1,
738                                      in long SecondNodeID1,
739                                      in long LastNodeID1,
740                                      in long FirstNodeID2,
741                                      in long SecondNodeID2) 
742       raises (SALOME::SALOME_Exception);
743
744     Sew_Error SewBorderToSide (in long FirstNodeIDOnFreeBorder,
745                                in long SecondNodeIDOnFreeBorder,
746                                in long LastNodeIDOnFreeBorder,
747                                in long FirstNodeIDOnSide,
748                                in long LastNodeIDOnSide,
749                                in boolean CreatePolygons,
750                                in boolean CreatePolyedrs) 
751       raises (SALOME::SALOME_Exception);
752
753     Sew_Error SewSideElements (in long_array IDsOfSide1Elements,
754                                in long_array IDsOfSide2Elements,
755                                in long       NodeID1OfSide1ToMerge,
756                                in long       NodeID1OfSide2ToMerge,
757                                in long       NodeID2OfSide1ToMerge,
758                                in long       NodeID2OfSide2ToMerge) 
759       raises (SALOME::SALOME_Exception);
760
761    /*!
762     * Set new nodes for given element.
763     * If number of nodes is not corresponded to type of
764     * element - returns false
765     */
766     boolean ChangeElemNodes(in long ide, in long_array newIDs) 
767       raises (SALOME::SALOME_Exception);
768
769     /*!
770      * \brief Duplicates given elements, i.e. creates new elements based on the 
771      *        same nodes as the given ones.
772      * \param theElements - container of elements to duplicate.
773      * \param theGroupName - a name of group to contain the generated elements.
774      *                    If a group with such a name already exists, the new elements
775      *                    are added to the existng group, else a new group is created.
776      *                    If \a theGroupName is empty, new elements are not added 
777      *                    in any group.
778      * \return a group where the new elements are added. NULL if theGroupName == "".
779      * \sa DoubleNode()
780      */
781     SMESH_Group DoubleElements( in SMESH_IDSource theElements, 
782                                 in string         theGroupName )
783       raises (SALOME::SALOME_Exception);
784
785     /*!
786      * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
787      * \param theNodes - identifiers of nodes to be doubled
788      * \param theModifiedElems - identifiers of elements to be updated by the new (doubled)
789      *        nodes. If list of element identifiers is empty then nodes are doubled but
790      *        they not assigned to elements
791      * \return TRUE if operation has been completed successfully, FALSE otherwise
792      * \sa DoubleNode(), DoubleNodeGroup(), DoubleNodeGroups()
793      */
794     boolean DoubleNodes( in long_array theNodes, in long_array theModifiedElems ) 
795       raises (SALOME::SALOME_Exception);
796
797     /*!
798      * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
799      * This method provided for convenience works as DoubleNodes() described above.
800      * \param theNodeId - identifier of node to be doubled.
801      * \param theModifiedElems - identifiers of elements to be updated.
802      * \return TRUE if operation has been completed successfully, FALSE otherwise
803      * \sa DoubleNodes(), DoubleNodeGroup(), DoubleNodeGroups()
804      */
805     boolean DoubleNode( in long theNodeId, in long_array theModifiedElems ) 
806       raises (SALOME::SALOME_Exception);
807
808     /*!
809      * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
810      * This method provided for convenience works as DoubleNodes() described above.
811      * \param theNodes - group of nodes to be doubled.
812      * \param theModifiedElems - group of elements to be updated.
813      * \return TRUE if operation has been completed successfully, FALSE otherwise
814      * \sa DoubleNode(), DoubleNodes(), DoubleNodeGroups(), DoubleNodeGroupNew()
815      */
816     boolean DoubleNodeGroup( in SMESH_GroupBase theNodes,
817                              in SMESH_GroupBase theModifiedElems ) 
818       raises (SALOME::SALOME_Exception);
819     /*!
820      * \brief Creates a hole in a mesh by doubling the nodes of some particular elements.
821      * Works as DoubleNodeGroup() described above, but returns a new group with
822      * newly created nodes.
823      * \param theNodes - group of nodes to be doubled.
824      * \param theModifiedElems - group of elements to be updated.
825      * \return a new group with newly created nodes
826      * \sa DoubleNodeGroup()
827      */
828     SMESH_Group DoubleNodeGroupNew( in SMESH_GroupBase theNodes,
829                                     in SMESH_GroupBase theModifiedElems ) 
830       raises (SALOME::SALOME_Exception);
831
832     /*!
833      * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
834      * This method provided for convenience works as DoubleNodes() described above.
835      * \param theNodes - list of groups of nodes to be doubled
836      * \param theModifiedElems - list of groups of elements to be updated.
837      * \return TRUE if operation has been completed successfully, FALSE otherwise
838      * \sa DoubleNode(), DoubleNodeGroup(), DoubleNodes()
839      */
840     boolean DoubleNodeGroups( in ListOfGroups theNodes,
841                               in ListOfGroups theModifiedElems ) 
842       raises (SALOME::SALOME_Exception);
843     /*!
844      * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
845      * Works as DoubleNodeGroups() described above, but returns a new group with
846      * newly created nodes.
847      * \param theNodes - list of groups of nodes to be doubled
848      * \param theModifiedElems - list of groups of elements to be updated.
849      * \return a new group with newly created nodes
850      * \sa DoubleNodeGroups()
851      */
852     SMESH_Group DoubleNodeGroupsNew( in ListOfGroups theNodes,
853                                      in ListOfGroups theModifiedElems ) 
854       raises (SALOME::SALOME_Exception);
855
856     /*!
857      * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
858      * \param theElems - the list of elements (edges or faces) to be replicated
859      *        The nodes for duplication could be found from these elements
860      * \param theNodesNot - list of nodes to NOT replicate
861      * \param theAffectedElems - the list of elements (cells and edges) to which the
862      *        replicated nodes should be associated to.
863      * \return TRUE if operation has been completed successfully, FALSE otherwise
864      * \sa DoubleNodeGroup(), DoubleNodeGroups()
865      */
866     boolean DoubleNodeElem( in long_array theElems,
867                             in long_array theNodesNot,
868                             in long_array theAffectedElems ) 
869       raises (SALOME::SALOME_Exception);
870
871     /*!
872      * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
873      * \param theElems - the list of elements (edges or faces) to be replicated
874      *        The nodes for duplication could be found from these elements
875      * \param theNodesNot - list of nodes to NOT replicate
876      * \param theShape - shape to detect affected elements (element which geometric center
877      *        located on or inside shape).
878      *        The replicated nodes should be associated to affected elements.
879      * \return TRUE if operation has been completed successfully, FALSE otherwise
880      * \sa DoubleNodeGroupInRegion(), DoubleNodeGroupsInRegion()
881      */
882     boolean DoubleNodeElemInRegion( in long_array theElems,
883                                     in long_array theNodesNot,
884                                     in GEOM::GEOM_Object theShape ) 
885       raises (SALOME::SALOME_Exception);
886
887     /*!
888      * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
889      * This method provided for convenience works as DoubleNodes() described above.
890      * \param theElems - group of of elements (edges or faces) to be replicated
891      * \param theNodesNot - group of nodes not to replicated
892      * \param theAffectedElems - group of elements to which the replicated nodes
893      *        should be associated to.
894      * \return TRUE if operation has been completed successfully, FALSE otherwise
895      * \sa DoubleNodes(), DoubleNodeGroups(), DoubleNodeElemGroupNew()
896      */
897     boolean DoubleNodeElemGroup( in SMESH_GroupBase theElems,
898                                  in SMESH_GroupBase theNodesNot,
899                                  in SMESH_GroupBase theAffectedElems ) 
900       raises (SALOME::SALOME_Exception);
901     /*!
902      * \brief Creates a hole in a mesh by doubling the nodes of some particular elements.
903      * Works as DoubleNodeElemGroup() described above, but returns a new group with
904      * newly created elements.
905      * \param theElems - group of of elements (edges or faces) to be replicated
906      * \param theNodesNot - group of nodes not to replicated
907      * \param theAffectedElems - group of elements to which the replicated nodes
908      *        should be associated to.
909      * \return a new group with newly created elements
910      * \sa DoubleNodeElemGroup()
911      */
912     SMESH_Group DoubleNodeElemGroupNew( in SMESH_GroupBase theElems,
913                                         in SMESH_GroupBase theNodesNot,
914                                         in SMESH_GroupBase theAffectedElems ) 
915       raises (SALOME::SALOME_Exception);
916     /*!
917      * \brief Creates a hole in a mesh by doubling the nodes of some particular elements.
918      * Works as DoubleNodeElemGroup() described above, but returns two new groups:
919      * a group of newly created elements and a group of newly created nodes
920      * \param theElems - group of of elements (edges or faces) to be replicated
921      * \param theNodesNot - group of nodes not to replicated
922      * \param theAffectedElems - group of elements to which the replicated nodes
923      *        should be associated to.
924      * \param theElemGroupNeeded - to create group of new elements or not
925      * \param theNodeGroupNeeded - to create group of new nodes or not
926      * \return two new groups of newly created elements (1st) and nodes (2nd)
927      * \sa DoubleNodeElemGroup()
928      */
929     ListOfGroups DoubleNodeElemGroup2New( in SMESH_GroupBase theElems,
930                                           in SMESH_GroupBase theNodesNot,
931                                           in SMESH_GroupBase theAffectedElems,
932                                           in boolean         theElemGroupNeeded,
933                                           in boolean         theNodeGroupNeeded) 
934       raises (SALOME::SALOME_Exception);
935
936     /*!
937      * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
938      * This method provided for convenience works as DoubleNodes() described above.
939      * \param theElems - group of elements (edges or faces) to be replicated
940      * \param theNodesNot - group of nodes not to replicated
941      * \param theShape - shape to detect affected elements (element which geometric center
942      *        located on or inside shape).
943      *        The replicated nodes should be associated to affected elements.
944      * \return TRUE if operation has been completed successfully, FALSE otherwise
945      * \sa DoubleNodesInRegion(), DoubleNodeGroupsInRegion()
946      */
947     boolean DoubleNodeElemGroupInRegion( in SMESH_GroupBase theElems,
948                                          in SMESH_GroupBase theNodesNot,
949                                          in GEOM::GEOM_Object theShape ) 
950       raises (SALOME::SALOME_Exception);
951
952     /*!
953      * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
954      * This method provided for convenience works as DoubleNodes() described above.
955      * \param theElems - list of groups of elements (edges or faces) to be replicated
956      * \param theNodesNot - list of groups of nodes not to replicated
957      * \param theAffectedElems - group of elements to which the replicated nodes
958      *        should be associated to.
959      * \return TRUE if operation has been completed successfully, FALSE otherwise
960      * \sa DoubleNodeGroup(), DoubleNodes(), DoubleNodeElemGroupsNew()
961      */
962     boolean DoubleNodeElemGroups( in ListOfGroups theElems,
963                                   in ListOfGroups theNodesNot,
964                                   in ListOfGroups theAffectedElems ) 
965       raises (SALOME::SALOME_Exception);
966     /*!
967      * \brief Creates a hole in a mesh by doubling the nodes of some particular elements.
968      * Works as DoubleNodeElemGroups() described above, but returns a new group with
969      * newly created elements.
970      * \param theElems - list of groups of elements (edges or faces) to be replicated
971      * \param theNodesNot - list of groups of nodes not to replicated
972      * \param theAffectedElems - group of elements to which the replicated nodes
973      *        should be associated to.
974      * \return a new group with newly created elements
975      * \sa DoubleNodeElemGroups()
976      */
977     SMESH_Group DoubleNodeElemGroupsNew( in ListOfGroups theElems,
978                                          in ListOfGroups theNodesNot,
979                                          in ListOfGroups theAffectedElems ) 
980       raises (SALOME::SALOME_Exception);
981     /*!
982      * \brief Creates a hole in a mesh by doubling the nodes of some particular elements.
983      * Works as DoubleNodeElemGroups() described above, but returns two new groups:
984      * a group of newly created elements and a group of newly created nodes.
985      * \param theElems - list of groups of elements (edges or faces) to be replicated
986      * \param theNodesNot - list of groups of nodes not to replicated
987      * \param theAffectedElems - group of elements to which the replicated nodes
988      *        should be associated to.
989      * \param theElemGroupNeeded - to create group of new elements or not
990      * \param theNodeGroupNeeded - to create group of new nodes or not
991      * \return two new groups of newly created elements (1st) and nodes (2nd)
992      * \sa DoubleNodeElemGroups()
993      */
994     ListOfGroups DoubleNodeElemGroups2New( in ListOfGroups theElems,
995                                            in ListOfGroups theNodesNot,
996                                            in ListOfGroups theAffectedElems,
997                                            in boolean         theElemGroupNeeded,
998                                            in boolean         theNodeGroupNeeded ) 
999       raises (SALOME::SALOME_Exception);
1000
1001     /*!
1002      * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
1003      * This method provided for convenience works as DoubleNodes() described above.
1004      * \param theElems - list of groups of elements (edges or faces) to be replicated
1005      * \param theNodesNot - list of groups of nodes not to replicated
1006      * \param theShape - shape to detect affected elements (element which geometric center
1007      *        located on or inside shape).
1008      *        The replicated nodes should be associated to affected elements.
1009      * \return TRUE if operation has been completed successfully, FALSE otherwise
1010      * \sa DoubleNodeGroupInRegion(), DoubleNodesInRegion()
1011      */
1012     boolean DoubleNodeElemGroupsInRegion( in ListOfGroups theElems,
1013                                           in ListOfGroups theNodesNot,
1014                                           in GEOM::GEOM_Object theShape )
1015       raises (SALOME::SALOME_Exception);
1016
1017     /*!
1018      * \brief Identify the elements that will be affected by node duplication (actual duplication is not performed).
1019      * This method is the first step of DoubleNodeElemGroupsInRegion.
1020      * \param theElems - list of groups of elements (edges or faces) to be replicated
1021      * \param theNodesNot - list of groups of nodes not to replicated
1022      * \param theShape - shape to detect affected elements (element which geometric center
1023      *        located on or inside shape).
1024      *        The replicated nodes should be associated to affected elements.
1025      * \return groups of affected elements
1026      * \sa DoubleNodeElemGroupsInRegion()
1027      */
1028     ListOfGroups AffectedElemGroupsInRegion( in ListOfGroups theElems,
1029                                              in ListOfGroups theNodesNot,
1030                                              in GEOM::GEOM_Object theShape ) 
1031       raises (SALOME::SALOME_Exception);
1032
1033     /*!
1034      * \brief Generates skin mesh (containing 2D cells) from 3D mesh
1035      * The created 2D mesh elements based on nodes of free faces of boundary volumes
1036      * \return TRUE if operation has been completed successfully, FALSE otherwise
1037      */
1038     boolean Make2DMeshFrom3D() raises (SALOME::SALOME_Exception);
1039
1040     /*!
1041      * \brief Creates missing boundary elements
1042      *  \param elements - elements whose boundary is to be checked
1043      *  \param dimension - defines type of boundary elements to create
1044      *    BND_1DFROM3D creates mesh edges on all borders of free facets of 3D elements.
1045      *  \param groupName - a name of group to store created boundary elements in,
1046      *                     "" means not to create the group
1047      *  \param meshName - a name of new mesh to store created boundary elements in,
1048      *                     "" means not to create the new mesh
1049      *  \param toCopyElements - if true, the checked elements will be copied into the new mesh
1050      *                          else only boundary elements will be copied into the new mesh
1051      *  \param toCopyExistingBondary - if true, not only new but also pre-existing
1052      *                                boundary elements will be copied into the new mesh
1053      *  \param group - returns the create group, if any
1054      *  \retval SMESH::SMESH_Mesh - the mesh where elements were added to
1055      */
1056     SMESH_Mesh MakeBoundaryMesh(in SMESH_IDSource elements,
1057                                 in Bnd_Dimension  dimension,
1058                                 in string         groupName,
1059                                 in string         meshName,
1060                                 in boolean        toCopyElements,
1061                                 in boolean        toCopyExistingBondary,
1062                                 out SMESH_Group   group) raises (SALOME::SALOME_Exception);
1063     /*!
1064      * \brief Creates missing boundary elements around either the whole mesh or 
1065      *    groups of 2D elements
1066      *  \param dimension - defines type of boundary elements to create
1067      *  \param groupName - a name of group to store all boundary elements in,
1068      *    "" means not to create the group
1069      *  \param meshName - a name of a new mesh, which is a copy of the initial 
1070      *    mesh + created boundary elements; "" means not to create the new mesh
1071      *  \param toCopyAll - if true, the whole initial mesh will be copied into
1072      *    the new mesh else only boundary elements will be copied into the new mesh
1073      *  \param groups - optional groups of 2D elements to make boundary around
1074      *  \param mesh - returns the mesh where elements were added to
1075      *  \param group - returns the created group, if any
1076      *  \retval long - number of added boundary elements
1077      */
1078     long MakeBoundaryElements(in Bnd_Dimension   dimension,
1079                               in string          groupName,
1080                               in string          meshName,
1081                               in boolean         toCopyAll,
1082                               in ListOfIDSources groups,
1083                               out SMESH_Mesh     mesh,
1084                               out SMESH_Group    group) raises (SALOME::SALOME_Exception);
1085
1086     /*!
1087      * \brief Double nodes on shared faces between groups of volumes and create flat elements on demand.
1088      * Flat elements are mainly used by some types of mechanic calculations.
1089      *
1090      * The list of groups must describe a partition of the mesh volumes.
1091      * The nodes of the internal faces at the boundaries of the groups are doubled.
1092      * In option, the internal faces are replaced by flat elements.
1093      * Triangles are transformed in prisms, and quadrangles in hexahedrons.
1094      * \param theDomains - list of groups of volumes
1095      * \param createJointElems - if TRUE, create the elements
1096      * \param onAllBoundaries - if TRUE, the nodes and elements are also created on
1097      *        the boundary between \a theDomains and the rest mesh
1098      * \return TRUE if operation has been completed successfully, FALSE otherwise
1099      */
1100     boolean DoubleNodesOnGroupBoundaries( in ListOfGroups theDomains,
1101                                           in boolean      createJointElems,
1102                                           in boolean      onAllBoundaries) 
1103       raises (SALOME::SALOME_Exception);
1104
1105     /*!
1106      * \brief Double nodes on some external faces and create flat elements.
1107      * Flat elements are mainly used by some types of mechanic calculations.
1108      *
1109      * Each group of the list must be constituted of faces.
1110      * Triangles are transformed in prisms, and quadrangles in hexahedrons.
1111      * \param theGroupsOfFaces - list of groups of faces
1112      * \return TRUE if operation has been completed successfully, FALSE otherwise
1113      */
1114     boolean CreateFlatElementsOnFacesGroups( in ListOfGroups theGroupsOfFaces ) 
1115       raises (SALOME::SALOME_Exception); 
1116
1117     /*!
1118      *  \brief identify all the elements around a geom shape, get the faces delimiting the hole
1119      *  Build groups of volume to remove, groups of faces to replace on the skin of the object,
1120      *  groups of faces to remove insidethe object, (idem edges).
1121      *  Build ordered list of nodes at the border of each group of faces to replace (to be used to build a geom subshape)
1122      */
1123     void CreateHoleSkin(in double radius,
1124                         in GEOM::GEOM_Object theShape,
1125                         in string groupName,
1126                         in double_array theNodesCoords,
1127                         out array_of_long_array GroupsOfNodes) 
1128       raises (SALOME::SALOME_Exception);
1129   };
1130 };
1131
1132 #endif