1 // Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // File : SMESH_MeshEditor.idl
24 #ifndef _SMESH_MESHEDITOR_IDL_
25 #define _SMESH_MESHEDITOR_IDL_
27 #include "SMESH_Mesh.idl"
28 #include "SMESH_Gen.idl"
32 enum Bnd_Dimension { BND_2DFROM3D, BND_1DFROM3D, BND_1DFROM2D };
35 * This interface makes modifications on the Mesh - removing elements and nodes etc.
37 interface NumericalFunctor;
39 interface SMESH_MeshEditor
42 * Return data of mesh edition preview which is computed provided
43 * that the editor was obtained trough SMESH_Mesh::GetMeshEditPreviewer()
45 MeshPreviewStruct GetPreviewData() raises (SALOME::SALOME_Exception);
48 * If during last operation of MeshEditor some nodes were
49 * created this method returns list of their IDs, if new nodes
50 * not created - returns empty list
52 long_array GetLastCreatedNodes() raises (SALOME::SALOME_Exception);
55 * If during last operation of MeshEditor some elements were
56 * created this method returns list of their IDs, if new elements
57 * not created - returns empty list
59 long_array GetLastCreatedElems() raises (SALOME::SALOME_Exception);
62 * \brief Clears sequences of last created elements and nodes
64 void ClearLastCreated() raises (SALOME::SALOME_Exception);
67 * \brief Returns description of an error/warning occured during the last operation
69 ComputeError GetLastError() raises (SALOME::SALOME_Exception);
72 * \brief Wrap a sequence of ids in a SMESH_IDSource
73 * \param IDsOfElements list of mesh elements identifiers
74 * \return new ID source object
76 SMESH_IDSource MakeIDSource(in long_array IDsOfElements, in ElementType type);
79 * \brief Remove mesh elements specified by their identifiers.
80 * \param IDsOfElements list of mesh elements identifiers
81 * \return \c true if elements are correctly removed or \c false otherwise
83 boolean RemoveElements(in long_array IDsOfElements) raises (SALOME::SALOME_Exception);
86 * \brief Remove mesh nodes specified by their identifiers.
87 * \param IDsOfNodes list of mesh nodes identifiers
88 * \return \c true if nodes are correctly removed or \c false otherwise
90 boolean RemoveNodes(in long_array IDsOfNodes) raises (SALOME::SALOME_Exception);
93 * \brief Remove all orphan nodes.
94 * \return number of removed nodes
96 long RemoveOrphanNodes() raises (SALOME::SALOME_Exception);
99 * \brief Add a new node.
100 * \param x X coordinate of new node
101 * \param y Y coordinate of new node
102 * \param z Z coordinate of new node
103 * \return integer identifier of new node
105 long AddNode(in double x, in double y, in double z) raises (SALOME::SALOME_Exception);
108 * Create a 0D element on the given node.
109 * \param IdOfNode Node IDs for creation of element.
111 long Add0DElement(in long IDOfNode) raises (SALOME::SALOME_Exception);
114 * Create a ball element on the given node.
115 * \param IdOfNode Node IDs for creation of element.
117 long AddBall(in long IDOfNode, in double diameter) raises (SALOME::SALOME_Exception);
120 * Create an edge, either linear and quadratic (this is determed
121 * by number of given nodes, two or three).
122 * \param IdsOfNodes List of node IDs for creation of element.
123 * Needed order of nodes in this list corresponds to description
124 * of MED. This description is located by the following link:
125 * http://www.salome-platform.org/salome2/web_med_internet/logiciels/medV2.2.2_doc_html/html/modele_de_donnees.html#3.
127 long AddEdge(in long_array IDsOfNodes) raises (SALOME::SALOME_Exception);
130 * Create face, either linear and quadratic (this is determed
131 * by number of given nodes).
132 * \param IdsOfNodes List of node IDs for creation of element.
133 * Needed order of nodes in this list corresponds to description
134 * of MED. This description is located by the following link:
135 * http://www.salome-platform.org/salome2/web_med_internet/logiciels/medV2.2.2_doc_html/html/modele_de_donnees.html#3.
137 long AddFace(in long_array IDsOfNodes) raises (SALOME::SALOME_Exception);
139 long AddPolygonalFace(in long_array IdsOfNodes) raises (SALOME::SALOME_Exception);
142 * Create volume, either linear and quadratic (this is determed
143 * by number of given nodes).
144 * \param IdsOfNodes List of node IDs for creation of element.
145 * Needed order of nodes in this list corresponds to description
146 * of MED. This description is located by the following link:
147 * http://www.salome-platform.org/salome2/web_med_internet/logiciels/medV2.2.2_doc_html/html/modele_de_donnees.html#3.
149 long AddVolume(in long_array IDsOfNodes) raises (SALOME::SALOME_Exception);
152 * Create volume of many faces, giving nodes for each face.
153 * \param IdsOfNodes List of node IDs for volume creation face by face.
154 * \param Quantities List of integer values, Quantities[i]
155 * gives quantity of nodes in face number i.
157 long AddPolyhedralVolume (in long_array IdsOfNodes,
158 in long_array Quantities) raises (SALOME::SALOME_Exception);
160 * Create volume of many faces, giving IDs of existing faces.
161 * \param IdsOfFaces List of face IDs for volume creation.
162 * \note The created volume will refer only to nodes
163 * of the given faces, not to the faces itself.
165 long AddPolyhedralVolumeByFaces (in long_array IdsOfFaces) raises (SALOME::SALOME_Exception);
168 * Create 0D elements on all nodes of the given object except those
169 * nodes on which a 0D element already exists.
170 * \param theObject object on whose nodes 0D elements will be created.
171 * \param theGroupName optional name of a group to add 0D elements created
172 * and/or found on nodes of \a theObject.
173 * \return an object (a new group or a temporary SMESH_IDSource) holding
174 * ids of new and/or found 0D elements.
176 SMESH_IDSource Create0DElementsOnAllNodes(in SMESH_IDSource theObject,
177 in string theGroupName)
178 raises (SALOME::SALOME_Exception);
181 * \brief Bind a node to a vertex
182 * \param NodeID - node ID
183 * \param VertexID - vertex ID available through GEOM_Object.GetSubShapeIndices()[0]
185 void SetNodeOnVertex(in long NodeID, in long VertexID)
186 raises (SALOME::SALOME_Exception);
188 * \brief Store node position on an edge
189 * \param NodeID - node ID
190 * \param EdgeID - edge ID available through GEOM_Object.GetSubShapeIndices()[0]
191 * \param paramOnEdge - parameter on edge where the node is located
193 void SetNodeOnEdge(in long NodeID, in long EdgeID, in double paramOnEdge)
194 raises (SALOME::SALOME_Exception);
196 * \brief Store node position on a face
197 * \param NodeID - node ID
198 * \param FaceID - face ID available through GEOM_Object.GetSubShapeIndices()[0]
199 * \param u - U parameter on face where the node is located
200 * \param v - V parameter on face where the node is located
202 void SetNodeOnFace(in long NodeID, in long FaceID, in double u, in double v)
203 raises (SALOME::SALOME_Exception);
205 * \brief Bind a node to a solid
206 * \param NodeID - node ID
207 * \param SolidID - vertex ID available through GEOM_Object.GetSubShapeIndices()[0]
209 void SetNodeInVolume(in long NodeID, in long SolidID)
210 raises (SALOME::SALOME_Exception);
212 * \brief Bind an element to a shape
213 * \param ElementID - element ID
214 * \param ShapeID - shape ID available through GEOM_Object.GetSubShapeIndices()[0]
216 void SetMeshElementOnShape(in long ElementID, in long ShapeID)
217 raises (SALOME::SALOME_Exception);
220 boolean MoveNode(in long NodeID, in double x, in double y, in double z)
221 raises (SALOME::SALOME_Exception);
223 boolean InverseDiag(in long NodeID1, in long NodeID2)
224 raises (SALOME::SALOME_Exception);
226 boolean DeleteDiag(in long NodeID1, in long NodeID2)
227 raises (SALOME::SALOME_Exception);
229 boolean Reorient(in long_array IDsOfElements)
230 raises (SALOME::SALOME_Exception);
232 boolean ReorientObject(in SMESH_IDSource theObject)
233 raises (SALOME::SALOME_Exception);
235 * \brief Reorient faces contained in \a the2Dgroup.
236 * \param the2Dgroup - the mesh or its part to reorient
237 * \param theDirection - desired direction of normal of \a theFace
238 * \param theFace - ID of face whose orientation is checked.
239 * It can be < 1 then \a thePoint is used to find a face.
240 * \param thePoint - is used to find a face if \a theFace < 1.
241 * \return number of reoriented elements.
243 long Reorient2D(in SMESH_IDSource the2Dgroup,
244 in DirStruct theDirection,
246 in PointStruct thePoint) raises (SALOME::SALOME_Exception);
249 * \brief Fuse neighbour triangles into quadrangles.
250 * \param IDsOfElements Ids of triangles to be fused.
251 * \param theCriterion Is used to choose a neighbour to fuse with.
252 * \param theMaxAngle Is a max angle between element normals at which fusion
253 * is still performed; theMaxAngle is mesured in radians.
254 * \return \c true in case of success, FALSE otherwise.
256 boolean TriToQuad (in long_array IDsOfElements,
257 in NumericalFunctor Criterion,
258 in double MaxAngle) raises (SALOME::SALOME_Exception);
260 * \brief Fuse neighbour triangles into quadrangles.
262 * Behaves like the above method, taking a list of elements from \a theObject
264 boolean TriToQuadObject (in SMESH_IDSource theObject,
265 in NumericalFunctor Criterion,
266 in double MaxAngle) raises (SALOME::SALOME_Exception);
269 * \brief Split quadrangles into triangles.
270 * \param IDsOfElements Ids of quadrangles to split.
271 * \param theCriterion Is used to choose a diagonal for splitting.
272 * \return TRUE in case of success, FALSE otherwise.
274 boolean QuadToTri (in long_array IDsOfElements,
275 in NumericalFunctor Criterion) raises (SALOME::SALOME_Exception);
277 * \brief Split quadrangles into triangles.
279 * Behaves like the above method, taking a list of elements from \a theObject
281 boolean QuadToTriObject (in SMESH_IDSource theObject,
282 in NumericalFunctor Criterion) raises (SALOME::SALOME_Exception);
284 * \brief Split each of quadrangles into 4 triangles.
285 * \param theQuads Container of quadrangles to split.
287 void QuadTo4Tri (in SMESH_IDSource theQuads) raises (SALOME::SALOME_Exception);
290 * \brief Split quadrangles into triangles.
291 * \param theElems The faces to be splitted.
292 * \param the13Diag Is used to choose a diagonal for splitting.
293 * \return TRUE in case of success, FALSE otherwise.
295 boolean SplitQuad (in long_array IDsOfElements,
296 in boolean Diag13) raises (SALOME::SALOME_Exception);
298 * \brief Split quadrangles into triangles.
300 * Behaves like the above method, taking list of elements from \a theObject
302 boolean SplitQuadObject (in SMESH_IDSource theObject,
303 in boolean Diag13) raises (SALOME::SALOME_Exception);
306 * Find better splitting of the given quadrangle.
307 * \param IDOfQuad ID of the quadrangle to be splitted.
308 * \param Criterion A criterion to choose a diagonal for splitting.
309 * \return 1 if 1-3 diagonal is better, 2 if 2-4
310 * diagonal is better, 0 if error occurs.
312 long BestSplit (in long IDOfQuad,
313 in NumericalFunctor Criterion) raises (SALOME::SALOME_Exception);
316 * \brief Split volumic elements into tetrahedrons
317 * \param elems - elements to split
318 * \param methodFlags - flags passing splitting method:
319 * 1 - split the hexahedron into 5 tetrahedrons
320 * 2 - split the hexahedron into 6 tetrahedrons
321 * 3 - split the hexahedron into 24 tetrahedrons
323 void SplitVolumesIntoTetra(in SMESH_IDSource elems, in short methodFlags)
324 raises (SALOME::SALOME_Exception);
327 enum Smooth_Method { LAPLACIAN_SMOOTH, CENTROIDAL_SMOOTH };
329 boolean Smooth(in long_array IDsOfElements,
330 in long_array IDsOfFixedNodes,
331 in long MaxNbOfIterations,
332 in double MaxAspectRatio,
333 in Smooth_Method Method) raises (SALOME::SALOME_Exception);
335 boolean SmoothObject(in SMESH_IDSource theObject,
336 in long_array IDsOfFixedNodes,
337 in long MaxNbOfIterations,
338 in double MaxAspectRatio,
339 in Smooth_Method Method) raises (SALOME::SALOME_Exception);
341 boolean SmoothParametric(in long_array IDsOfElements,
342 in long_array IDsOfFixedNodes,
343 in long MaxNbOfIterations,
344 in double MaxAspectRatio,
345 in Smooth_Method Method) raises (SALOME::SALOME_Exception);
347 boolean SmoothParametricObject(in SMESH_IDSource theObject,
348 in long_array IDsOfFixedNodes,
349 in long MaxNbOfIterations,
350 in double MaxAspectRatio,
351 in Smooth_Method Method) raises (SALOME::SALOME_Exception);
353 void ConvertToQuadratic(in boolean theForce3d)
354 raises (SALOME::SALOME_Exception);
355 void ConvertToQuadraticObject(in boolean theForce3d,
356 in SMESH_IDSource theObject)
357 raises (SALOME::SALOME_Exception);
359 boolean ConvertFromQuadratic()
360 raises (SALOME::SALOME_Exception);
361 void ConvertFromQuadraticObject(in SMESH_IDSource theObject)
362 raises (SALOME::SALOME_Exception);
364 void ConvertToBiQuadratic(in boolean theForce3d,
365 in SMESH_IDSource theObject)
366 raises (SALOME::SALOME_Exception);
368 void RenumberNodes() raises (SALOME::SALOME_Exception);
370 void RenumberElements() raises (SALOME::SALOME_Exception);
373 * \brief Genarate dim+1 elements by rotation of given elements around axis
374 * \param IDsOfElements - elements to ratate
375 * \param Axix - rotation axis
376 * \param AngleInRadians - rotation angle
377 * \param NbOfSteps - number of elements to generate from one element
379 void RotationSweep(in long_array IDsOfElements,
381 in double AngleInRadians,
384 raises (SALOME::SALOME_Exception);
386 * \brief Same as previous but additionally create groups of elements
387 * generated from elements belonging to preexisting groups
389 ListOfGroups RotationSweepMakeGroups(in long_array IDsOfElements,
391 in double AngleInRadians,
394 raises (SALOME::SALOME_Exception);
396 * \brief Genarate dim+1 elements by rotation of the object around axis
397 * \param theObject - object containing elements to ratate
398 * \param Axix - rotation axis
399 * \param AngleInRadians - rotation angle
400 * \param NbOfSteps - number of elements to generate from one element
402 void RotationSweepObject(in SMESH_IDSource theObject,
404 in double AngleInRadians,
407 raises (SALOME::SALOME_Exception);
409 * \brief Same as previous but additionally create groups of elements
410 * generated from elements belonging to preexisting groups
412 ListOfGroups RotationSweepObjectMakeGroups(in SMESH_IDSource theObject,
414 in double AngleInRadians,
417 raises (SALOME::SALOME_Exception);
419 * \brief Genarate dim+1 elements by rotation of the object around axis
420 * \param theObject - object containing elements to ratate
421 * \param Axix - rotation axis
422 * \param AngleInRadians - rotation angle
423 * \param NbOfSteps - number of elements to generate from one element
425 void RotationSweepObject1D(in SMESH_IDSource theObject,
427 in double AngleInRadians,
430 raises (SALOME::SALOME_Exception);
432 * \brief Same as previous but additionally create groups of elements
433 * generated from elements belonging to preexisting groups
435 ListOfGroups RotationSweepObject1DMakeGroups(in SMESH_IDSource theObject,
437 in double AngleInRadians,
440 raises (SALOME::SALOME_Exception);
442 * \brief Genarate dim+1 elements by rotation of the object around axis
443 * \param theObject - object containing elements to ratate
444 * \param Axix - rotation axis
445 * \param AngleInRadians - rotation angle
446 * \param NbOfSteps - number of elements to generate from one element
448 void RotationSweepObject2D(in SMESH_IDSource theObject,
450 in double AngleInRadians,
453 raises (SALOME::SALOME_Exception);
455 * \brief Same as previous but additionally create groups of elements
456 * generated from elements belonging to preexisting groups
458 ListOfGroups RotationSweepObject2DMakeGroups(in SMESH_IDSource theObject,
460 in double AngleInRadians,
463 raises (SALOME::SALOME_Exception);
465 * \brief Genarate dim+1 elements by extrusion of elements along vector
466 * \param IDsOfElements - elements to sweep
467 * \param StepVector - vector giving direction and distance of an extrusion step
468 * \param NbOfSteps - number of elements to generate from one element
470 void ExtrusionSweep(in long_array IDsOfElements,
471 in DirStruct StepVector,
473 raises (SALOME::SALOME_Exception);
475 * \brief Genarate dim+1 elements by extrusion of elements along vector
476 * \param IDsOfElements - elements to sweep
477 * \param StepVector - vector giving direction and distance of an extrusion step
478 * \param NbOfSteps - number of elements to generate from one element
480 void ExtrusionSweep0D(in long_array IDsOfElements,
481 in DirStruct StepVector,
483 raises (SALOME::SALOME_Exception);
485 * \brief Same as previous but additionally create groups of elements
486 * generated from elements belonging to preexisting groups
488 ListOfGroups ExtrusionSweepMakeGroups(in long_array IDsOfElements,
489 in DirStruct StepVector,
491 raises (SALOME::SALOME_Exception);
493 * \brief Same as previous but elements are nodes
495 ListOfGroups ExtrusionSweepMakeGroups0D(in long_array IDsOfElements,
496 in DirStruct StepVector,
498 raises (SALOME::SALOME_Exception);
500 * Generate new elements by extrusion of theElements
501 * by StepVector by NbOfSteps
502 * param ExtrFlags set flags for performing extrusion
503 * param SewTolerance - uses for comparing locations of nodes if flag
504 * EXTRUSION_FLAG_SEW is set
506 void AdvancedExtrusion(in long_array IDsOfElements,
507 in DirStruct StepVector,
510 in double SewTolerance)
511 raises (SALOME::SALOME_Exception);
513 * \brief Same as previous but additionally create groups of elements
514 * generated from elements belonging to preexisting groups
516 ListOfGroups AdvancedExtrusionMakeGroups(in long_array IDsOfElements,
517 in DirStruct StepVector,
520 in double SewTolerance)
521 raises (SALOME::SALOME_Exception);
523 void ExtrusionSweepObject(in SMESH_IDSource theObject,
524 in DirStruct StepVector,
526 raises (SALOME::SALOME_Exception);
527 ListOfGroups ExtrusionSweepObjectMakeGroups(in SMESH_IDSource theObject,
528 in DirStruct StepVector,
530 raises (SALOME::SALOME_Exception);
532 void ExtrusionSweepObject0D(in SMESH_IDSource theObject,
533 in DirStruct StepVector,
535 raises (SALOME::SALOME_Exception);
536 ListOfGroups ExtrusionSweepObject0DMakeGroups(in SMESH_IDSource theObject,
537 in DirStruct StepVector,
539 raises (SALOME::SALOME_Exception);
541 void ExtrusionSweepObject1D(in SMESH_IDSource theObject,
542 in DirStruct StepVector,
544 raises (SALOME::SALOME_Exception);
545 ListOfGroups ExtrusionSweepObject1DMakeGroups(in SMESH_IDSource theObject,
546 in DirStruct StepVector,
548 raises (SALOME::SALOME_Exception);
550 void ExtrusionSweepObject2D(in SMESH_IDSource theObject,
551 in DirStruct StepVector,
553 raises (SALOME::SALOME_Exception);
554 ListOfGroups ExtrusionSweepObject2DMakeGroups(in SMESH_IDSource theObject,
555 in DirStruct StepVector,
557 raises (SALOME::SALOME_Exception);
559 enum Extrusion_Error {
564 EXTR_BAD_STARTING_NODE,
565 EXTR_BAD_ANGLES_NUMBER,
566 EXTR_CANT_GET_TANGENT
569 ListOfGroups ExtrusionAlongPathX(in long_array IDsOfElements,
570 in SMESH_IDSource Path,
572 in boolean HasAngles,
573 in double_array Angles,
574 in boolean LinearVariation,
575 in boolean HasRefPoint,
576 in PointStruct RefPoint,
577 in boolean MakeGroups,
578 in ElementType ElemType,
579 out Extrusion_Error Error)
580 raises (SALOME::SALOME_Exception);
582 ListOfGroups ExtrusionAlongPathObjX(in SMESH_IDSource theObject,
583 in SMESH_IDSource Path,
585 in boolean HasAngles,
586 in double_array Angles,
587 in boolean LinearVariation,
588 in boolean HasRefPoint,
589 in PointStruct RefPoint,
590 in boolean MakeGroups,
591 in ElementType ElemType,
592 out Extrusion_Error Error)
593 raises (SALOME::SALOME_Exception);
595 Extrusion_Error ExtrusionAlongPath(in long_array IDsOfElements,
596 in SMESH_Mesh PathMesh,
597 in GEOM::GEOM_Object PathShape,
599 in boolean HasAngles,
600 in double_array Angles,
601 in boolean HasRefPoint,
602 in PointStruct RefPoint)
603 raises (SALOME::SALOME_Exception);
604 ListOfGroups ExtrusionAlongPathMakeGroups(in long_array IDsOfElements,
605 in SMESH_Mesh PathMesh,
606 in GEOM::GEOM_Object PathShape,
608 in boolean HasAngles,
609 in double_array Angles,
610 in boolean HasRefPoint,
611 in PointStruct RefPoint,
612 out Extrusion_Error Error)
613 raises (SALOME::SALOME_Exception);
615 Extrusion_Error ExtrusionAlongPathObject(in SMESH_IDSource theObject,
616 in SMESH_Mesh PathMesh,
617 in GEOM::GEOM_Object PathShape,
619 in boolean HasAngles,
620 in double_array Angles,
621 in boolean HasRefPoint,
622 in PointStruct RefPoint)
623 raises (SALOME::SALOME_Exception);
624 ListOfGroups ExtrusionAlongPathObjectMakeGroups(in SMESH_IDSource theObject,
625 in SMESH_Mesh PathMesh,
626 in GEOM::GEOM_Object PathShape,
628 in boolean HasAngles,
629 in double_array Angles,
630 in boolean HasRefPoint,
631 in PointStruct RefPoint,
632 out Extrusion_Error Error)
633 raises (SALOME::SALOME_Exception);
635 Extrusion_Error ExtrusionAlongPathObject1D(in SMESH_IDSource theObject,
636 in SMESH_Mesh PathMesh,
637 in GEOM::GEOM_Object PathShape,
639 in boolean HasAngles,
640 in double_array Angles,
641 in boolean HasRefPoint,
642 in PointStruct RefPoint)
643 raises (SALOME::SALOME_Exception);
644 ListOfGroups ExtrusionAlongPathObject1DMakeGroups(in SMESH_IDSource theObject,
645 in SMESH_Mesh PathMesh,
646 in GEOM::GEOM_Object PathShape,
648 in boolean HasAngles,
649 in double_array Angles,
650 in boolean HasRefPoint,
651 in PointStruct RefPoint,
652 out Extrusion_Error Error)
653 raises (SALOME::SALOME_Exception);
655 Extrusion_Error ExtrusionAlongPathObject2D(in SMESH_IDSource theObject,
656 in SMESH_Mesh PathMesh,
657 in GEOM::GEOM_Object PathShape,
659 in boolean HasAngles,
660 in double_array Angles,
661 in boolean HasRefPoint,
662 in PointStruct RefPoint)
663 raises (SALOME::SALOME_Exception);
664 ListOfGroups ExtrusionAlongPathObject2DMakeGroups(in SMESH_IDSource theObject,
665 in SMESH_Mesh PathMesh,
666 in GEOM::GEOM_Object PathShape,
668 in boolean HasAngles,
669 in double_array Angles,
670 in boolean HasRefPoint,
671 in PointStruct RefPoint,
672 out Extrusion_Error Error)
673 raises (SALOME::SALOME_Exception);
676 * Compute rotation angles for ExtrusionAlongPath as linear variation
677 * of given angles along path steps
678 * param PathMesh mesh containing a 1D sub-mesh on the edge, along
679 * which proceeds the extrusion
680 * param PathShape is shape(edge); as the mesh can be complex, the edge
681 * is used to define the sub-mesh for the path
683 double_array LinearAnglesVariation(in SMESH_Mesh PathMesh,
684 in GEOM::GEOM_Object PathShape,
685 in double_array Angles);
687 enum MirrorType { POINT, AXIS, PLANE };
689 void Mirror (in long_array IDsOfElements,
690 in AxisStruct Mirror,
693 raises (SALOME::SALOME_Exception);
694 ListOfGroups MirrorMakeGroups (in long_array IDsOfElements,
695 in AxisStruct Mirror,
697 raises (SALOME::SALOME_Exception);
698 SMESH_Mesh MirrorMakeMesh (in long_array IDsOfElements,
699 in AxisStruct Mirror,
701 in boolean CopyGroups,
703 raises (SALOME::SALOME_Exception);
705 void MirrorObject (in SMESH_IDSource theObject,
706 in AxisStruct Mirror,
709 raises (SALOME::SALOME_Exception);
710 ListOfGroups MirrorObjectMakeGroups (in SMESH_IDSource theObject,
711 in AxisStruct Mirror,
713 raises (SALOME::SALOME_Exception);
714 SMESH_Mesh MirrorObjectMakeMesh (in SMESH_IDSource theObject,
715 in AxisStruct Mirror,
717 in boolean CopyGroups,
719 raises (SALOME::SALOME_Exception);
721 void Translate (in long_array IDsOfElements,
724 raises (SALOME::SALOME_Exception);
725 ListOfGroups TranslateMakeGroups (in long_array IDsOfElements,
727 raises (SALOME::SALOME_Exception);
728 SMESH_Mesh TranslateMakeMesh (in long_array IDsOfElements,
730 in boolean CopyGroups,
732 raises (SALOME::SALOME_Exception);
734 void TranslateObject (in SMESH_IDSource theObject,
737 raises (SALOME::SALOME_Exception);
738 ListOfGroups TranslateObjectMakeGroups (in SMESH_IDSource theObject,
740 raises (SALOME::SALOME_Exception);
741 SMESH_Mesh TranslateObjectMakeMesh (in SMESH_IDSource theObject,
743 in boolean CopyGroups,
745 raises (SALOME::SALOME_Exception);
747 void Scale (in SMESH_IDSource theObject,
748 in PointStruct thePoint,
749 in double_array theScaleFact,
751 raises (SALOME::SALOME_Exception);
752 ListOfGroups ScaleMakeGroups (in SMESH_IDSource theObject,
753 in PointStruct thePoint,
754 in double_array theScaleFact)
755 raises (SALOME::SALOME_Exception);
756 SMESH_Mesh ScaleMakeMesh (in SMESH_IDSource theObject,
757 in PointStruct thePoint,
758 in double_array theScaleFact,
759 in boolean CopyGroups,
761 raises (SALOME::SALOME_Exception);
763 void Rotate (in long_array IDsOfElements,
765 in double AngleInRadians,
767 raises (SALOME::SALOME_Exception);
768 ListOfGroups RotateMakeGroups (in long_array IDsOfElements,
770 in double AngleInRadians)
771 raises (SALOME::SALOME_Exception);
772 SMESH_Mesh RotateMakeMesh (in long_array IDsOfElements,
774 in double AngleInRadians,
775 in boolean CopyGroups,
777 raises (SALOME::SALOME_Exception);
779 void RotateObject (in SMESH_IDSource theObject,
781 in double AngleInRadians,
783 raises (SALOME::SALOME_Exception);
784 ListOfGroups RotateObjectMakeGroups (in SMESH_IDSource theObject,
786 in double AngleInRadians)
787 raises (SALOME::SALOME_Exception);
788 SMESH_Mesh RotateObjectMakeMesh (in SMESH_IDSource theObject,
790 in double AngleInRadians,
791 in boolean CopyGroups,
793 raises (SALOME::SALOME_Exception);
795 void FindCoincidentNodes (in double Tolerance,
796 out array_of_long_array GroupsOfNodes)
797 raises (SALOME::SALOME_Exception);
799 void FindCoincidentNodesOnPart (in SMESH_IDSource SubMeshOrGroup,
801 out array_of_long_array GroupsOfNodes)
802 raises (SALOME::SALOME_Exception);
804 void FindCoincidentNodesOnPartBut (in SMESH_IDSource SubMeshOrGroup,
806 out array_of_long_array GroupsOfNodes,
807 in ListOfIDSources ExceptSubMeshOrGroups)
808 raises (SALOME::SALOME_Exception);
810 void MergeNodes (in array_of_long_array GroupsOfNodes)
811 raises (SALOME::SALOME_Exception);
814 * \brief Find elements built on the same nodes.
815 * \param MeshOrSubMeshOrGroup Mesh or SubMesh, or Group of elements for searching.
816 * \return List of groups of equal elements.
818 void FindEqualElements (in SMESH_IDSource MeshOrSubMeshOrGroup,
819 out array_of_long_array GroupsOfElementsID)
820 raises (SALOME::SALOME_Exception);
823 * \brief Merge elements in each given group.
824 * \param GroupsOfElementsID Groups of elements for merging.
826 void MergeElements(in array_of_long_array GroupsOfElementsID)
827 raises (SALOME::SALOME_Exception);
830 * \brief Merge equal elements in the whole mesh.
832 void MergeEqualElements()
833 raises (SALOME::SALOME_Exception);
836 * If the given ID is a valid node ID (nodeID > 0), just move this node, else
837 * move the node closest to the point to point's location and return ID of the node
839 long MoveClosestNodeToPoint(in double x, in double y, in double z, in long nodeID)
840 raises (SALOME::SALOME_Exception);
843 * Return ID of node closest to a given point
845 long FindNodeClosestTo(in double x, in double y, in double z)
846 raises (SALOME::SALOME_Exception);
849 * Return elements of given type where the given point is IN or ON.
851 * 'ALL' type means elements of any type excluding nodes and 0D elements
853 long_array FindElementsByPoint(in double x, in double y, in double z, in ElementType type)
854 raises (SALOME::SALOME_Exception);
857 * Searching among the given elements, return elements of given type
858 * where the given point is IN or ON.
860 * 'ALL' type means elements of any type excluding nodes and 0D elements
862 long_array FindAmongElementsByPoint(in SMESH_IDSource elements,
863 in double x, in double y, in double z,
865 raises (SALOME::SALOME_Exception);
868 * Return point state in a closed 2D mesh in terms of TopAbs_State enumeration.
869 * TopAbs_UNKNOWN state means that either mesh is wrong or the analysis fails.
871 short GetPointState(in double x, in double y, in double z)
872 raises (SALOME::SALOME_Exception);
876 SEW_BORDER1_NOT_FOUND,
877 SEW_BORDER2_NOT_FOUND,
878 SEW_BOTH_BORDERS_NOT_FOUND,
880 SEW_VOLUMES_TO_SPLIT,
881 // for SewSideElements() only:
882 SEW_DIFF_NB_OF_ELEMENTS,
883 SEW_TOPO_DIFF_SETS_OF_ELEMENTS,
888 Sew_Error SewFreeBorders (in long FirstNodeID1,
889 in long SecondNodeID1,
891 in long FirstNodeID2,
892 in long SecondNodeID2,
894 in boolean CreatePolygons,
895 in boolean CreatePolyedrs)
896 raises (SALOME::SALOME_Exception);
898 Sew_Error SewConformFreeBorders (in long FirstNodeID1,
899 in long SecondNodeID1,
901 in long FirstNodeID2,
902 in long SecondNodeID2)
903 raises (SALOME::SALOME_Exception);
905 Sew_Error SewBorderToSide (in long FirstNodeIDOnFreeBorder,
906 in long SecondNodeIDOnFreeBorder,
907 in long LastNodeIDOnFreeBorder,
908 in long FirstNodeIDOnSide,
909 in long LastNodeIDOnSide,
910 in boolean CreatePolygons,
911 in boolean CreatePolyedrs)
912 raises (SALOME::SALOME_Exception);
914 Sew_Error SewSideElements (in long_array IDsOfSide1Elements,
915 in long_array IDsOfSide2Elements,
916 in long NodeID1OfSide1ToMerge,
917 in long NodeID1OfSide2ToMerge,
918 in long NodeID2OfSide1ToMerge,
919 in long NodeID2OfSide2ToMerge)
920 raises (SALOME::SALOME_Exception);
923 * Set new nodes for given element.
924 * If number of nodes is not corresponded to type of
925 * element - returns false
927 boolean ChangeElemNodes(in long ide, in long_array newIDs)
928 raises (SALOME::SALOME_Exception);
931 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
932 * \param theNodes - identifiers of nodes to be doubled
933 * \param theModifiedElems - identifiers of elements to be updated by the new (doubled)
934 * nodes. If list of element identifiers is empty then nodes are doubled but
935 * they not assigned to elements
936 * \return TRUE if operation has been completed successfully, FALSE otherwise
937 * \sa DoubleNode(), DoubleNodeGroup(), DoubleNodeGroups()
939 boolean DoubleNodes( in long_array theNodes, in long_array theModifiedElems )
940 raises (SALOME::SALOME_Exception);
943 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
944 * This method provided for convenience works as DoubleNodes() described above.
945 * \param theNodeId - identifier of node to be doubled.
946 * \param theModifiedElems - identifiers of elements to be updated.
947 * \return TRUE if operation has been completed successfully, FALSE otherwise
948 * \sa DoubleNodes(), DoubleNodeGroup(), DoubleNodeGroups()
950 boolean DoubleNode( in long theNodeId, in long_array theModifiedElems )
951 raises (SALOME::SALOME_Exception);
954 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
955 * This method provided for convenience works as DoubleNodes() described above.
956 * \param theNodes - group of nodes to be doubled.
957 * \param theModifiedElems - group of elements to be updated.
958 * \return TRUE if operation has been completed successfully, FALSE otherwise
959 * \sa DoubleNode(), DoubleNodes(), DoubleNodeGroups(), DoubleNodeGroupNew()
961 boolean DoubleNodeGroup( in SMESH_GroupBase theNodes,
962 in SMESH_GroupBase theModifiedElems )
963 raises (SALOME::SALOME_Exception);
965 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements.
966 * Works as DoubleNodeGroup() described above, but returns a new group with
967 * newly created nodes.
968 * \param theNodes - group of nodes to be doubled.
969 * \param theModifiedElems - group of elements to be updated.
970 * \return a new group with newly created nodes
971 * \sa DoubleNodeGroup()
973 SMESH_Group DoubleNodeGroupNew( in SMESH_GroupBase theNodes,
974 in SMESH_GroupBase theModifiedElems )
975 raises (SALOME::SALOME_Exception);
978 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
979 * This method provided for convenience works as DoubleNodes() described above.
980 * \param theNodes - list of groups of nodes to be doubled
981 * \param theModifiedElems - list of groups of elements to be updated.
982 * \return TRUE if operation has been completed successfully, FALSE otherwise
983 * \sa DoubleNode(), DoubleNodeGroup(), DoubleNodes()
985 boolean DoubleNodeGroups( in ListOfGroups theNodes,
986 in ListOfGroups theModifiedElems )
987 raises (SALOME::SALOME_Exception);
989 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
990 * Works as DoubleNodeGroups() described above, but returns a new group with
991 * newly created nodes.
992 * \param theNodes - list of groups of nodes to be doubled
993 * \param theModifiedElems - list of groups of elements to be updated.
994 * \return a new group with newly created nodes
995 * \sa DoubleNodeGroups()
997 SMESH_Group DoubleNodeGroupsNew( in ListOfGroups theNodes,
998 in ListOfGroups theModifiedElems )
999 raises (SALOME::SALOME_Exception);
1002 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
1003 * \param theElems - the list of elements (edges or faces) to be replicated
1004 * The nodes for duplication could be found from these elements
1005 * \param theNodesNot - list of nodes to NOT replicate
1006 * \param theAffectedElems - the list of elements (cells and edges) to which the
1007 * replicated nodes should be associated to.
1008 * \return TRUE if operation has been completed successfully, FALSE otherwise
1009 * \sa DoubleNodeGroup(), DoubleNodeGroups()
1011 boolean DoubleNodeElem( in long_array theElems,
1012 in long_array theNodesNot,
1013 in long_array theAffectedElems )
1014 raises (SALOME::SALOME_Exception);
1017 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
1018 * \param theElems - the list of elements (edges or faces) to be replicated
1019 * The nodes for duplication could be found from these elements
1020 * \param theNodesNot - list of nodes to NOT replicate
1021 * \param theShape - shape to detect affected elements (element which geometric center
1022 * located on or inside shape).
1023 * The replicated nodes should be associated to affected elements.
1024 * \return TRUE if operation has been completed successfully, FALSE otherwise
1025 * \sa DoubleNodeGroupInRegion(), DoubleNodeGroupsInRegion()
1027 boolean DoubleNodeElemInRegion( in long_array theElems,
1028 in long_array theNodesNot,
1029 in GEOM::GEOM_Object theShape )
1030 raises (SALOME::SALOME_Exception);
1033 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
1034 * This method provided for convenience works as DoubleNodes() described above.
1035 * \param theElems - group of of elements (edges or faces) to be replicated
1036 * \param theNodesNot - group of nodes not to replicated
1037 * \param theAffectedElems - group of elements to which the replicated nodes
1038 * should be associated to.
1039 * \return TRUE if operation has been completed successfully, FALSE otherwise
1040 * \sa DoubleNodes(), DoubleNodeGroups(), DoubleNodeElemGroupNew()
1042 boolean DoubleNodeElemGroup( in SMESH_GroupBase theElems,
1043 in SMESH_GroupBase theNodesNot,
1044 in SMESH_GroupBase theAffectedElems )
1045 raises (SALOME::SALOME_Exception);
1047 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements.
1048 * Works as DoubleNodeElemGroup() described above, but returns a new group with
1049 * newly created elements.
1050 * \param theElems - group of of elements (edges or faces) to be replicated
1051 * \param theNodesNot - group of nodes not to replicated
1052 * \param theAffectedElems - group of elements to which the replicated nodes
1053 * should be associated to.
1054 * \return a new group with newly created elements
1055 * \sa DoubleNodeElemGroup()
1057 SMESH_Group DoubleNodeElemGroupNew( in SMESH_GroupBase theElems,
1058 in SMESH_GroupBase theNodesNot,
1059 in SMESH_GroupBase theAffectedElems )
1060 raises (SALOME::SALOME_Exception);
1062 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements.
1063 * Works as DoubleNodeElemGroup() described above, but returns two new groups:
1064 * a group of newly created elements and a group of newly created nodes
1065 * \param theElems - group of of elements (edges or faces) to be replicated
1066 * \param theNodesNot - group of nodes not to replicated
1067 * \param theAffectedElems - group of elements to which the replicated nodes
1068 * should be associated to.
1069 * \param theElemGroupNeeded - to create group of new elements or not
1070 * \param theNodeGroupNeeded - to create group of new nodes or not
1071 * \return two new groups of newly created elements (1st) and nodes (2nd)
1072 * \sa DoubleNodeElemGroup()
1074 ListOfGroups DoubleNodeElemGroup2New( in SMESH_GroupBase theElems,
1075 in SMESH_GroupBase theNodesNot,
1076 in SMESH_GroupBase theAffectedElems,
1077 in boolean theElemGroupNeeded,
1078 in boolean theNodeGroupNeeded)
1079 raises (SALOME::SALOME_Exception);
1082 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
1083 * This method provided for convenience works as DoubleNodes() described above.
1084 * \param theElems - group of elements (edges or faces) to be replicated
1085 * \param theNodesNot - group of nodes not to replicated
1086 * \param theShape - shape to detect affected elements (element which geometric center
1087 * located on or inside shape).
1088 * The replicated nodes should be associated to affected elements.
1089 * \return TRUE if operation has been completed successfully, FALSE otherwise
1090 * \sa DoubleNodesInRegion(), DoubleNodeGroupsInRegion()
1092 boolean DoubleNodeElemGroupInRegion( in SMESH_GroupBase theElems,
1093 in SMESH_GroupBase theNodesNot,
1094 in GEOM::GEOM_Object theShape )
1095 raises (SALOME::SALOME_Exception);
1098 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
1099 * This method provided for convenience works as DoubleNodes() described above.
1100 * \param theElems - list of groups of elements (edges or faces) to be replicated
1101 * \param theNodesNot - list of groups of nodes not to replicated
1102 * \param theAffectedElems - group of elements to which the replicated nodes
1103 * should be associated to.
1104 * \return TRUE if operation has been completed successfully, FALSE otherwise
1105 * \sa DoubleNodeGroup(), DoubleNodes(), DoubleNodeElemGroupsNew()
1107 boolean DoubleNodeElemGroups( in ListOfGroups theElems,
1108 in ListOfGroups theNodesNot,
1109 in ListOfGroups theAffectedElems )
1110 raises (SALOME::SALOME_Exception);
1112 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements.
1113 * Works as DoubleNodeElemGroups() described above, but returns a new group with
1114 * newly created elements.
1115 * \param theElems - list of groups of elements (edges or faces) to be replicated
1116 * \param theNodesNot - list of groups of nodes not to replicated
1117 * \param theAffectedElems - group of elements to which the replicated nodes
1118 * should be associated to.
1119 * \return a new group with newly created elements
1120 * \sa DoubleNodeElemGroups()
1122 SMESH_Group DoubleNodeElemGroupsNew( in ListOfGroups theElems,
1123 in ListOfGroups theNodesNot,
1124 in ListOfGroups theAffectedElems )
1125 raises (SALOME::SALOME_Exception);
1127 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements.
1128 * Works as DoubleNodeElemGroups() described above, but returns two new groups:
1129 * a group of newly created elements and a group of newly created nodes.
1130 * \param theElems - list of groups of elements (edges or faces) to be replicated
1131 * \param theNodesNot - list of groups of nodes not to replicated
1132 * \param theAffectedElems - group of elements to which the replicated nodes
1133 * should be associated to.
1134 * \param theElemGroupNeeded - to create group of new elements or not
1135 * \param theNodeGroupNeeded - to create group of new nodes or not
1136 * \return two new groups of newly created elements (1st) and nodes (2nd)
1137 * \sa DoubleNodeElemGroups()
1139 ListOfGroups DoubleNodeElemGroups2New( in ListOfGroups theElems,
1140 in ListOfGroups theNodesNot,
1141 in ListOfGroups theAffectedElems,
1142 in boolean theElemGroupNeeded,
1143 in boolean theNodeGroupNeeded )
1144 raises (SALOME::SALOME_Exception);
1147 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
1148 * This method provided for convenience works as DoubleNodes() described above.
1149 * \param theElems - list of groups of elements (edges or faces) to be replicated
1150 * \param theNodesNot - list of groups of nodes not to replicated
1151 * \param theShape - shape to detect affected elements (element which geometric center
1152 * located on or inside shape).
1153 * The replicated nodes should be associated to affected elements.
1154 * \return TRUE if operation has been completed successfully, FALSE otherwise
1155 * \sa DoubleNodeGroupInRegion(), DoubleNodesInRegion()
1157 boolean DoubleNodeElemGroupsInRegion( in ListOfGroups theElems,
1158 in ListOfGroups theNodesNot,
1159 in GEOM::GEOM_Object theShape )
1160 raises (SALOME::SALOME_Exception);
1163 * \brief Identify the elements that will be affected by node duplication (actual duplication is not performed).
1164 * This method is the first step of DoubleNodeElemGroupsInRegion.
1165 * \param theElems - list of groups of elements (edges or faces) to be replicated
1166 * \param theNodesNot - list of groups of nodes not to replicated
1167 * \param theShape - shape to detect affected elements (element which geometric center
1168 * located on or inside shape).
1169 * The replicated nodes should be associated to affected elements.
1170 * \return groups of affected elements
1171 * \sa DoubleNodeElemGroupsInRegion()
1173 ListOfGroups AffectedElemGroupsInRegion( in ListOfGroups theElems,
1174 in ListOfGroups theNodesNot,
1175 in GEOM::GEOM_Object theShape )
1176 raises (SALOME::SALOME_Exception);
1179 * \brief Generates skin mesh (containing 2D cells) from 3D mesh
1180 * The created 2D mesh elements based on nodes of free faces of boundary volumes
1181 * \return TRUE if operation has been completed successfully, FALSE otherwise
1183 boolean Make2DMeshFrom3D() raises (SALOME::SALOME_Exception);
1186 * \brief Creates missing boundary elements
1187 * \param elements - elements whose boundary is to be checked
1188 * \param dimension - defines type of boundary elements to create
1189 * BND_1DFROM3D creates mesh edges on all borders of free facets of 3D elements.
1190 * \param groupName - a name of group to store created boundary elements in,
1191 * "" means not to create the group
1192 * \param meshName - a name of new mesh to store created boundary elements in,
1193 * "" means not to create the new mesh
1194 * \param toCopyElements - if true, the checked elements will be copied into the new mesh
1195 * else only boundary elements will be copied into the new mesh
1196 * \param toCopyExistingBondary - if true, not only new but also pre-existing
1197 * boundary elements will be copied into the new mesh
1198 * \param group - returns the create group, if any
1199 * \retval SMESH::SMESH_Mesh - the mesh where elements were added to
1201 SMESH_Mesh MakeBoundaryMesh(in SMESH_IDSource elements,
1202 in Bnd_Dimension dimension,
1203 in string groupName,
1205 in boolean toCopyElements,
1206 in boolean toCopyExistingBondary,
1207 out SMESH_Group group) raises (SALOME::SALOME_Exception);
1209 * \brief Creates missing boundary elements around either the whole mesh or
1210 * groups of 2D elements
1211 * \param dimension - defines type of boundary elements to create
1212 * \param groupName - a name of group to store all boundary elements in,
1213 * "" means not to create the group
1214 * \param meshName - a name of a new mesh, which is a copy of the initial
1215 * mesh + created boundary elements; "" means not to create the new mesh
1216 * \param toCopyAll - if true, the whole initial mesh will be copied into
1217 * the new mesh else only boundary elements will be copied into the new mesh
1218 * \param groups - optional groups of 2D elements to make boundary around
1219 * \param mesh - returns the mesh where elements were added to
1220 * \param group - returns the created group, if any
1221 * \retval long - number of added boundary elements
1223 long MakeBoundaryElements(in Bnd_Dimension dimension,
1224 in string groupName,
1226 in boolean toCopyAll,
1227 in ListOfIDSources groups,
1228 out SMESH_Mesh mesh,
1229 out SMESH_Group group) raises (SALOME::SALOME_Exception);
1232 * \brief Double nodes on shared faces between groups of volumes and create flat elements on demand.
1233 * Flat elements are mainly used by some types of mechanic calculations.
1235 * The list of groups must describe a partition of the mesh volumes.
1236 * The nodes of the internal faces at the boundaries of the groups are doubled.
1237 * In option, the internal faces are replaced by flat elements.
1238 * Triangles are transformed in prisms, and quadrangles in hexahedrons.
1239 * \param theDomains - list of groups of volumes
1240 * \param createJointElems - if TRUE, create the elements
1241 * \return TRUE if operation has been completed successfully, FALSE otherwise
1243 boolean DoubleNodesOnGroupBoundaries( in ListOfGroups theDomains,
1244 in boolean createJointElems )
1245 raises (SALOME::SALOME_Exception);
1248 * \brief Double nodes on some external faces and create flat elements.
1249 * Flat elements are mainly used by some types of mechanic calculations.
1251 * Each group of the list must be constituted of faces.
1252 * Triangles are transformed in prisms, and quadrangles in hexahedrons.
1253 * \param theGroupsOfFaces - list of groups of faces
1254 * \return TRUE if operation has been completed successfully, FALSE otherwise
1256 boolean CreateFlatElementsOnFacesGroups( in ListOfGroups theGroupsOfFaces )
1257 raises (SALOME::SALOME_Exception);
1260 * \brief identify all the elements around a geom shape, get the faces delimiting the hole
1261 * Build groups of volume to remove, groups of faces to replace on the skin of the object,
1262 * groups of faces to remove insidethe object, (idem edges).
1263 * Build ordered list of nodes at the border of each group of faces to replace (to be used to build a geom subshape)
1265 void CreateHoleSkin(in double radius,
1266 in GEOM::GEOM_Object theShape,
1267 in string groupName,
1268 in double_array theNodesCoords,
1269 out array_of_long_array GroupsOfNodes)
1270 raises (SALOME::SALOME_Exception);