1 // Copyright (C) 2007-2016 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, or (at your option) any later version.
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 interface NumericalFunctor;
34 enum Bnd_Dimension { BND_2DFROM3D, BND_1DFROM3D, BND_1DFROM2D };
39 SMESH::long_array nodeIDs; // all nodes defining a free border
40 // 1st and last node is same in a closed border
44 short border; // border index within a sequence<FreeBorder>
45 long node1; // node index within the border-th FreeBorder
49 typedef sequence<FreeBorder> ListOfFreeBorders;
50 typedef sequence<FreeBorderPart> FreeBordersGroup;
51 typedef sequence<FreeBordersGroup> ListOfFreeBorderGroups;
53 struct CoincidentFreeBorders
55 ListOfFreeBorders borders; // nodes of all free borders
56 ListOfFreeBorderGroups coincidentGroups; // groups of coincident parts of borders
60 // structure used in MakePolyLine() to define a cutting plane
63 // point 1: if node1ID2 > 0, then the point is in the middle of a face edge defined
64 // by two nodes, else it is at node1ID1
68 // point 2: if node2ID2 > 0, then the point is in the middle of a face edge defined
69 // by two nodes, else it is at node2ID1
73 DirStruct vector; // vector on the plane; to use a default plane set vector = (0,0,0)
75 typedef sequence<PolySegment> ListOfPolySegments;
79 * This interface makes modifications on the Mesh - removing elements and nodes etc.
81 interface SMESH_MeshEditor
84 * Returns a mesh subject to edition
89 * Return data of mesh edition preview which is computed provided
90 * that the editor was obtained through SMESH_Mesh::GetMeshEditPreviewer()
92 MeshPreviewStruct GetPreviewData() raises (SALOME::SALOME_Exception);
95 * If during last operation of MeshEditor some nodes were
96 * created, this method returns list of their IDs, if new nodes
97 * not created - returns empty list
99 long_array GetLastCreatedNodes() raises (SALOME::SALOME_Exception);
102 * If during last operation of MeshEditor some elements were
103 * created, this method returns list of their IDs, if new elements
104 * not created - returns empty list
106 long_array GetLastCreatedElems() raises (SALOME::SALOME_Exception);
109 * \brief Clears sequences of last created elements and nodes
111 void ClearLastCreated() raises (SALOME::SALOME_Exception);
114 * \brief Returns description of an error/warning occurred during the last operation
116 ComputeError GetLastError() raises (SALOME::SALOME_Exception);
119 * \brief Wrap a sequence of ids in a SMESH_IDSource
120 * \param IDsOfElements list of mesh elements identifiers
121 * \return new ID source object
123 SMESH_IDSource MakeIDSource(in long_array IDsOfElements, in ElementType type);
126 * \brief Remove mesh elements specified by their identifiers.
127 * \param IDsOfElements list of mesh elements identifiers
128 * \return \c true if elements are correctly removed or \c false otherwise
130 boolean RemoveElements(in long_array IDsOfElements) raises (SALOME::SALOME_Exception);
133 * \brief Remove mesh nodes specified by their identifiers.
134 * \param IDsOfNodes list of mesh nodes identifiers
135 * \return \c true if nodes are correctly removed or \c false otherwise
137 boolean RemoveNodes(in long_array IDsOfNodes) raises (SALOME::SALOME_Exception);
140 * \brief Remove all orphan nodes.
141 * \return number of removed nodes
143 long RemoveOrphanNodes() raises (SALOME::SALOME_Exception);
146 * \brief Add a new node.
147 * \param x X coordinate of new node
148 * \param y Y coordinate of new node
149 * \param z Z coordinate of new node
150 * \return integer identifier of new node
152 long AddNode(in double x, in double y, in double z) raises (SALOME::SALOME_Exception);
155 * Create a 0D element on the given node.
156 * \param IdOfNode Node IDs for creation of element.
157 * \param DuplicateElements to add one more 0D element to a node or not
159 long Add0DElement(in long IDOfNode,
160 in boolean DuplicateElements) raises (SALOME::SALOME_Exception);
163 * Create a ball element on the given node.
164 * \param IdOfNode Node IDs for creation of element.
166 long AddBall(in long IDOfNode, in double diameter) raises (SALOME::SALOME_Exception);
169 * Create an edge, either linear and quadratic (this is determed
170 * by number of given nodes, two or three).
171 * \param IdsOfNodes List of node IDs for creation of element.
172 * Needed order of nodes in this list corresponds to description
173 * of MED. This description is located by the following link:
174 * http://www.salome-platform.org/salome2/web_med_internet/logiciels/medV2.2.2_doc_html/html/modele_de_donnees.html#3.
176 long AddEdge(in long_array IDsOfNodes) raises (SALOME::SALOME_Exception);
179 * Create face, either linear and quadratic (this is determed
180 * by number of given nodes).
181 * \param IdsOfNodes List of node IDs for creation of element.
182 * Needed order of nodes in this list corresponds to description
183 * of MED. This description is located by the following link:
184 * http://www.salome-platform.org/salome2/web_med_internet/logiciels/medV2.2.2_doc_html/html/modele_de_donnees.html#3.
186 long AddFace(in long_array IDsOfNodes) raises (SALOME::SALOME_Exception);
188 long AddPolygonalFace(in long_array IdsOfNodes) raises (SALOME::SALOME_Exception);
191 * Create a quadratic polygonal face
192 * \param IdsOfNodes - nodes of the polygon; corner nodes follow first
193 * \return long - ID of a new polygon
195 long AddQuadPolygonalFace(in long_array IdsOfNodes) raises (SALOME::SALOME_Exception);
198 * Create volume, either linear and quadratic (this is determed
199 * by number of given nodes).
200 * \param IdsOfNodes List of node IDs for creation of element.
201 * Needed order of nodes in this list corresponds to description
202 * of MED. This description is located by the following link:
203 * http://www.salome-platform.org/salome2/web_med_internet/logiciels/medV2.2.2_doc_html/html/modele_de_donnees.html#3.
205 long AddVolume(in long_array IDsOfNodes) raises (SALOME::SALOME_Exception);
208 * Create volume of many faces, giving nodes for each face.
209 * \param IdsOfNodes List of node IDs for volume creation face by face.
210 * \param Quantities List of integer values, Quantities[i]
211 * gives quantity of nodes in face number i.
213 long AddPolyhedralVolume (in long_array IdsOfNodes,
214 in long_array Quantities) raises (SALOME::SALOME_Exception);
216 * Create volume of many faces, giving IDs of existing faces.
217 * \param IdsOfFaces List of face IDs for volume creation.
218 * \note The created volume will refer only to nodes
219 * of the given faces, not to the faces itself.
221 long AddPolyhedralVolumeByFaces (in long_array IdsOfFaces) raises (SALOME::SALOME_Exception);
224 * Create 0D elements on all nodes of the given object.
225 * \param theObject object on whose nodes 0D elements will be created.
226 * \param theGroupName optional name of a group to add 0D elements created
227 * and/or found on nodes of \a theObject.
228 * \param theDuplicateElements to add one more 0D element to a node or not
229 * \return an object (a new group or a temporary SMESH_IDSource) holding
230 * ids of new and/or found 0D elements.
232 SMESH_IDSource Create0DElementsOnAllNodes(in SMESH_IDSource theObject,
233 in string theGroupName,
234 in boolean theDuplicateElements)
235 raises (SALOME::SALOME_Exception);
238 * \brief Bind a node to a vertex
239 * \param NodeID - node ID
240 * \param VertexID - vertex ID available through GEOM_Object.GetSubShapeIndices()[0]
242 void SetNodeOnVertex(in long NodeID, in long VertexID)
243 raises (SALOME::SALOME_Exception);
245 * \brief Store node position on an edge
246 * \param NodeID - node ID
247 * \param EdgeID - edge ID available through GEOM_Object.GetSubShapeIndices()[0]
248 * \param paramOnEdge - parameter on edge where the node is located
250 void SetNodeOnEdge(in long NodeID, in long EdgeID, in double paramOnEdge)
251 raises (SALOME::SALOME_Exception);
253 * \brief Store node position on a face
254 * \param NodeID - node ID
255 * \param FaceID - face ID available through GEOM_Object.GetSubShapeIndices()[0]
256 * \param u - U parameter on face where the node is located
257 * \param v - V parameter on face where the node is located
259 void SetNodeOnFace(in long NodeID, in long FaceID, in double u, in double v)
260 raises (SALOME::SALOME_Exception);
262 * \brief Bind a node to a solid
263 * \param NodeID - node ID
264 * \param SolidID - vertex ID available through GEOM_Object.GetSubShapeIndices()[0]
266 void SetNodeInVolume(in long NodeID, in long SolidID)
267 raises (SALOME::SALOME_Exception);
269 * \brief Bind an element to a shape
270 * \param ElementID - element ID
271 * \param ShapeID - shape ID available through GEOM_Object.GetSubShapeIndices()[0]
273 void SetMeshElementOnShape(in long ElementID, in long ShapeID)
274 raises (SALOME::SALOME_Exception);
277 boolean MoveNode(in long NodeID, in double x, in double y, in double z)
278 raises (SALOME::SALOME_Exception);
280 boolean InverseDiag(in long NodeID1, in long NodeID2)
281 raises (SALOME::SALOME_Exception);
283 boolean DeleteDiag(in long NodeID1, in long NodeID2)
284 raises (SALOME::SALOME_Exception);
286 boolean Reorient(in long_array IDsOfElements)
287 raises (SALOME::SALOME_Exception);
289 boolean ReorientObject(in SMESH_IDSource theObject)
290 raises (SALOME::SALOME_Exception);
292 * \brief Reorient faces contained in \a the2Dgroup.
293 * \param the2Dgroup - the mesh or its part to reorient
294 * \param theDirection - desired direction of normal of \a theFace
295 * \param theFace - ID of face whose orientation is checked.
296 * It can be < 1 then \a thePoint is used to find a face.
297 * \param thePoint - is used to find a face if \a theFace < 1.
298 * \return number of reoriented faces.
300 long Reorient2D(in SMESH_IDSource the2Dgroup,
301 in DirStruct theDirection,
303 in PointStruct thePoint) raises (SALOME::SALOME_Exception);
305 * \brief Reorient faces basing on orientation of adjacent volumes.
306 * \param faces - a list of objects containing face to reorient
307 * \param volumes - an object containing volumes.
308 * \param outsideNormal - to orient faces to have their normal
309 * pointing either \a outside or \a inside the adjacent volumes.
310 * \return number of reoriented faces.
312 long Reorient2DBy3D(in ListOfIDSources faces,
313 in SMESH_IDSource volumes,
314 in boolean outsideNormal) raises (SALOME::SALOME_Exception);
317 * \brief Fuse neighbour triangles into quadrangles.
318 * \param IDsOfElements Ids of triangles to be fused.
319 * \param theCriterion Is used to choose a neighbour to fuse with.
320 * \param theMaxAngle Is a max angle between element normals at which fusion
321 * is still performed; theMaxAngle is measured in radians.
322 * \return \c true in case of success, FALSE otherwise.
324 boolean TriToQuad (in long_array IDsOfElements,
325 in NumericalFunctor Criterion,
326 in double MaxAngle) raises (SALOME::SALOME_Exception);
328 * \brief Fuse neighbour triangles into quadrangles.
330 * Behaves like the above method, taking a list of elements from \a theObject
332 boolean TriToQuadObject (in SMESH_IDSource theObject,
333 in NumericalFunctor Criterion,
334 in double MaxAngle) raises (SALOME::SALOME_Exception);
337 * \brief Split quadrangles into triangles.
338 * \param IDsOfElements Ids of quadrangles to split.
339 * \param theCriterion Is used to choose a diagonal for splitting.
340 * \return TRUE in case of success, FALSE otherwise.
342 boolean QuadToTri (in long_array IDsOfElements,
343 in NumericalFunctor Criterion) raises (SALOME::SALOME_Exception);
345 * \brief Split quadrangles into triangles.
347 * Behaves like the above method, taking a list of elements from \a theObject
349 boolean QuadToTriObject (in SMESH_IDSource theObject,
350 in NumericalFunctor Criterion) raises (SALOME::SALOME_Exception);
352 * \brief Split each of quadrangles into 4 triangles.
353 * \param theQuads Container of quadrangles to split.
355 void QuadTo4Tri (in SMESH_IDSource theQuads) raises (SALOME::SALOME_Exception);
358 * \brief Split quadrangles into triangles.
359 * \param theElems The faces to be split.
360 * \param the13Diag Is used to choose a diagonal for splitting.
361 * \return TRUE in case of success, FALSE otherwise.
363 boolean SplitQuad (in long_array IDsOfElements,
364 in boolean Diag13) raises (SALOME::SALOME_Exception);
366 * \brief Split quadrangles into triangles.
368 * Behaves like the above method, taking list of elements from \a theObject
370 boolean SplitQuadObject (in SMESH_IDSource theObject,
371 in boolean Diag13) raises (SALOME::SALOME_Exception);
374 * Find better splitting of the given quadrangle.
375 * \param IDOfQuad ID of the quadrangle to be split.
376 * \param Criterion A criterion to choose a diagonal for splitting.
377 * \return 1 if 1-3 diagonal is better, 2 if 2-4
378 * diagonal is better, 0 if error occurs.
380 long BestSplit (in long IDOfQuad,
381 in NumericalFunctor Criterion) raises (SALOME::SALOME_Exception);
384 * \brief Split volumic elements into tetrahedrons
385 * \param elems - elements to split
386 * \param methodFlags - flags passing splitting method:
387 * 1 - split the hexahedron into 5 tetrahedrons
388 * 2 - split the hexahedron into 6 tetrahedrons
389 * 3 - split the hexahedron into 24 tetrahedrons
391 void SplitVolumesIntoTetra(in SMESH_IDSource elems, in short methodFlags)
392 raises (SALOME::SALOME_Exception);
395 * \brief Split hexahedra into triangular prisms
396 * \param elems - elements to split
397 * \param startHexPoint - a point used to find a hexahedron for which \a facetToSplitNormal
398 * gives a normal vector defining facets to split into triangles.
399 * \param facetToSplitNormal - normal used to find a facet of hexahedron
400 * to split into triangles.
401 * \param methodFlags - flags passing splitting method:
402 * 1 - split the hexahedron into 2 prisms
403 * 2 - split the hexahedron into 4 prisms
404 * \param allDomains - if \c False, only hexahedra adjacent to one closest
405 * to \a facetToSplitNormal location are split, else \a facetToSplitNormal
406 * is used to find the facet to split in all domains present in \a elems.
408 void SplitHexahedraIntoPrisms(in SMESH_IDSource elems,
409 in SMESH::PointStruct startHexPoint,
410 in SMESH::DirStruct facetToSplitNormal,
411 in short methodFlags,
412 in boolean allDomains)
413 raises (SALOME::SALOME_Exception);
416 * \brief Split bi-quadratic elements into linear ones without creation of additional nodes.
417 * - bi-quadratic triangle will be split into 3 linear quadrangles;
418 * - bi-quadratic quadrangle will be split into 4 linear quadrangles;
419 * - tri-quadratic hexahedron will be split into 8 linear hexahedra;
420 * Quadratic elements of lower dimension adjacent to the split bi-quadratic element
421 * will be split in order to keep the mesh conformal.
422 * \param elems - elements to split
424 void SplitBiQuadraticIntoLinear(in ListOfIDSources elems)
425 raises (SALOME::SALOME_Exception);
428 enum Smooth_Method { LAPLACIAN_SMOOTH, CENTROIDAL_SMOOTH };
430 boolean Smooth(in long_array IDsOfElements,
431 in long_array IDsOfFixedNodes,
432 in long MaxNbOfIterations,
433 in double MaxAspectRatio,
434 in Smooth_Method Method) raises (SALOME::SALOME_Exception);
436 boolean SmoothObject(in SMESH_IDSource theObject,
437 in long_array IDsOfFixedNodes,
438 in long MaxNbOfIterations,
439 in double MaxAspectRatio,
440 in Smooth_Method Method) raises (SALOME::SALOME_Exception);
442 boolean SmoothParametric(in long_array IDsOfElements,
443 in long_array IDsOfFixedNodes,
444 in long MaxNbOfIterations,
445 in double MaxAspectRatio,
446 in Smooth_Method Method) raises (SALOME::SALOME_Exception);
448 boolean SmoothParametricObject(in SMESH_IDSource theObject,
449 in long_array IDsOfFixedNodes,
450 in long MaxNbOfIterations,
451 in double MaxAspectRatio,
452 in Smooth_Method Method) raises (SALOME::SALOME_Exception);
454 void ConvertToQuadratic(in boolean theForce3d)
455 raises (SALOME::SALOME_Exception);
456 void ConvertToQuadraticObject(in boolean theForce3d,
457 in SMESH_IDSource theObject)
458 raises (SALOME::SALOME_Exception);
460 boolean ConvertFromQuadratic()
461 raises (SALOME::SALOME_Exception);
462 void ConvertFromQuadraticObject(in SMESH_IDSource theObject)
463 raises (SALOME::SALOME_Exception);
465 void ConvertToBiQuadratic(in boolean theForce3d,
466 in SMESH_IDSource theObject)
467 raises (SALOME::SALOME_Exception);
469 void RenumberNodes() raises (SALOME::SALOME_Exception);
471 void RenumberElements() raises (SALOME::SALOME_Exception);
474 * \brief Generate dim+1 elements by rotation of the object around axis
475 * \param Nodes - nodes to revolve: a list including groups, sub-meshes or a mesh
476 * \param Edges - edges to revolve: a list including groups, sub-meshes or a mesh
477 * \param Faces - faces to revolve: a list including groups, sub-meshes or a mesh
478 * \param Axis - rotation axis
479 * \param AngleInRadians - rotation angle
480 * \param NbOfSteps - number of elements to generate from one element
481 * \param ToMakeGroups - if true, new elements will be included into new groups
482 * corresponding to groups the input elements included in.
483 * \return ListOfGroups - new groups created if \a ToMakeGroups is true
485 ListOfGroups RotationSweepObjects(in ListOfIDSources Nodes,
486 in ListOfIDSources Edges,
487 in ListOfIDSources Faces,
489 in double AngleInRadians,
492 in boolean ToMakeGroups)
493 raises (SALOME::SALOME_Exception);
496 * \brief Generate dim+1 elements by extrusion of elements along vector
497 * \param nodes - nodes to extrude: a list including groups, sub-meshes or a mesh
498 * \param edges - edges to extrude: a list including groups, sub-meshes or a mesh
499 * \param faces - faces to extrude: a list including groups, sub-meshes or a mesh
500 * \param stepVector - vector giving direction and distance of an extrusion step
501 * \param nbOfSteps - number of elements to generate from one element
502 * \param toMakeGroups - if true, new elements will be included into new groups
503 * corresponding to groups the input elements included in.
504 * \return ListOfGroups - new groups created if \a toMakeGroups is true
506 ListOfGroups ExtrusionSweepObjects(in ListOfIDSources nodes,
507 in ListOfIDSources edges,
508 in ListOfIDSources faces,
509 in DirStruct stepVector,
511 in double_array scaleFactors,
512 in boolean linearVariation,
513 in double_array basePoint,
514 in boolean toMakeGroups)
515 raises (SALOME::SALOME_Exception);
517 /*! Generates new elements by extrusion along the normal to a discretized surface or wire
519 ListOfGroups ExtrusionByNormal(in ListOfIDSources theObjects,
522 in boolean byAverageNormal,
523 in boolean useInputElemsOnly,
524 in boolean makeGroups,
526 raises (SALOME::SALOME_Exception);
529 * Generate new elements by extrusion of theElements
530 * by StepVector by NbOfSteps
531 * \param ExtrFlags set flags for performing extrusion
532 * \param SewTolerance - uses for comparing locations of nodes if flag
533 * EXTRUSION_FLAG_SEW is set
534 * \param ToMakeGroups - if true, new elements will be included into new groups
535 * corresponding to groups the input elements included in.
536 * \return ListOfGroups - new groups created if \a ToMakeGroups is true
538 ListOfGroups AdvancedExtrusion(in long_array IDsOfElements,
539 in DirStruct StepVector,
542 in double SewTolerance,
543 in boolean ToMakeGroups)
544 raises (SALOME::SALOME_Exception);
546 enum Extrusion_Error {
551 EXTR_BAD_STARTING_NODE,
552 EXTR_BAD_ANGLES_NUMBER,
553 EXTR_CANT_GET_TANGENT
556 ListOfGroups ExtrusionAlongPathObjects(in ListOfIDSources Nodes,
557 in ListOfIDSources Edges,
558 in ListOfIDSources Faces,
559 in SMESH_IDSource Path,
560 in GEOM::GEOM_Object PathShape,
562 in boolean HasAngles,
563 in double_array Angles,
564 in boolean LinearVariation,
565 in boolean HasRefPoint,
566 in PointStruct RefPoint,
567 in boolean MakeGroups,
568 out Extrusion_Error Error)
569 raises (SALOME::SALOME_Exception);
572 * Compute rotation angles for ExtrusionAlongPath as linear variation
573 * of given angles along path steps
574 * param PathMesh mesh containing a 1D sub-mesh on the edge, along
575 * which proceeds the extrusion
576 * param PathShape is shape(edge); as the mesh can be complex, the edge
577 * is used to define the sub-mesh for the path
579 double_array LinearAnglesVariation(in SMESH_Mesh PathMesh,
580 in GEOM::GEOM_Object PathShape,
581 in double_array Angles);
583 enum MirrorType { POINT, AXIS, PLANE };
585 void Mirror (in long_array IDsOfElements,
586 in AxisStruct Mirror,
589 raises (SALOME::SALOME_Exception);
590 ListOfGroups MirrorMakeGroups (in long_array IDsOfElements,
591 in AxisStruct Mirror,
593 raises (SALOME::SALOME_Exception);
594 SMESH_Mesh MirrorMakeMesh (in long_array IDsOfElements,
595 in AxisStruct Mirror,
597 in boolean CopyGroups,
599 raises (SALOME::SALOME_Exception);
601 void MirrorObject (in SMESH_IDSource theObject,
602 in AxisStruct Mirror,
605 raises (SALOME::SALOME_Exception);
606 ListOfGroups MirrorObjectMakeGroups (in SMESH_IDSource theObject,
607 in AxisStruct Mirror,
609 raises (SALOME::SALOME_Exception);
610 SMESH_Mesh MirrorObjectMakeMesh (in SMESH_IDSource theObject,
611 in AxisStruct Mirror,
613 in boolean CopyGroups,
615 raises (SALOME::SALOME_Exception);
617 void Translate (in long_array IDsOfElements,
620 raises (SALOME::SALOME_Exception);
621 ListOfGroups TranslateMakeGroups (in long_array IDsOfElements,
623 raises (SALOME::SALOME_Exception);
624 SMESH_Mesh TranslateMakeMesh (in long_array IDsOfElements,
626 in boolean CopyGroups,
628 raises (SALOME::SALOME_Exception);
630 void TranslateObject (in SMESH_IDSource theObject,
633 raises (SALOME::SALOME_Exception);
634 ListOfGroups TranslateObjectMakeGroups (in SMESH_IDSource theObject,
636 raises (SALOME::SALOME_Exception);
637 SMESH_Mesh TranslateObjectMakeMesh (in SMESH_IDSource theObject,
639 in boolean CopyGroups,
641 raises (SALOME::SALOME_Exception);
643 void Scale (in SMESH_IDSource theObject,
644 in PointStruct thePoint,
645 in double_array theScaleFact,
647 raises (SALOME::SALOME_Exception);
648 ListOfGroups ScaleMakeGroups (in SMESH_IDSource theObject,
649 in PointStruct thePoint,
650 in double_array theScaleFact)
651 raises (SALOME::SALOME_Exception);
652 SMESH_Mesh ScaleMakeMesh (in SMESH_IDSource theObject,
653 in PointStruct thePoint,
654 in double_array theScaleFact,
655 in boolean CopyGroups,
657 raises (SALOME::SALOME_Exception);
659 void Rotate (in long_array IDsOfElements,
661 in double AngleInRadians,
663 raises (SALOME::SALOME_Exception);
664 ListOfGroups RotateMakeGroups (in long_array IDsOfElements,
666 in double AngleInRadians)
667 raises (SALOME::SALOME_Exception);
668 SMESH_Mesh RotateMakeMesh (in long_array IDsOfElements,
670 in double AngleInRadians,
671 in boolean CopyGroups,
673 raises (SALOME::SALOME_Exception);
675 void RotateObject (in SMESH_IDSource theObject,
677 in double AngleInRadians,
679 raises (SALOME::SALOME_Exception);
680 ListOfGroups RotateObjectMakeGroups (in SMESH_IDSource theObject,
682 in double AngleInRadians)
683 raises (SALOME::SALOME_Exception);
684 SMESH_Mesh RotateObjectMakeMesh (in SMESH_IDSource theObject,
686 in double AngleInRadians,
687 in boolean CopyGroups,
689 raises (SALOME::SALOME_Exception);
691 SMESH_Mesh Offset(in SMESH_IDSource theObject,
693 in boolean CopyGroups,
694 in boolean CopyElements,
696 out ListOfGroups Groups)
697 raises (SALOME::SALOME_Exception);
699 void FindCoincidentNodes (in double Tolerance,
700 out array_of_long_array GroupsOfNodes,
701 in boolean SeparateCornersAndMedium)
702 raises (SALOME::SALOME_Exception);
704 void FindCoincidentNodesOnPart (in SMESH_IDSource SubMeshOrGroup,
706 out array_of_long_array GroupsOfNodes,
707 in boolean SeparateCornersAndMedium)
708 raises (SALOME::SALOME_Exception);
710 void FindCoincidentNodesOnPartBut (in SMESH_IDSource SubMeshOrGroup,
712 out array_of_long_array GroupsOfNodes,
713 in ListOfIDSources ExceptSubMeshOrGroups,
714 in boolean SeparateCornersAndMedium)
715 raises (SALOME::SALOME_Exception);
717 void MergeNodes (in array_of_long_array GroupsOfNodes,
718 in SMESH::ListOfIDSources NodesToKeep,
719 in boolean AvoidMakingHoles)
720 raises (SALOME::SALOME_Exception);
723 * \brief Find elements built on the same nodes.
724 * \param MeshOrSubMeshOrGroup Mesh or SubMesh, or Group of elements for searching.
725 * \return List of groups of equal elements.
727 void FindEqualElements (in SMESH_IDSource MeshOrSubMeshOrGroup,
728 out array_of_long_array GroupsOfElementsID)
729 raises (SALOME::SALOME_Exception);
732 * \brief Merge elements in each given group.
733 * \param GroupsOfElementsID Groups of elements for merging.
735 void MergeElements(in array_of_long_array GroupsOfElementsID)
736 raises (SALOME::SALOME_Exception);
739 * \brief Merge equal elements in the whole mesh.
741 void MergeEqualElements()
742 raises (SALOME::SALOME_Exception);
745 * If the given ID is a valid node ID (nodeID > 0), just move this node, else
746 * move the node closest to the point to point's location and return ID of the node
748 long MoveClosestNodeToPoint(in double x, in double y, in double z, in long nodeID)
749 raises (SALOME::SALOME_Exception);
752 * Return ID of node closest to a given point
754 long FindNodeClosestTo(in double x, in double y, in double z)
755 raises (SALOME::SALOME_Exception);
758 * Return elements of given type where the given point is IN or ON.
760 * 'ALL' type means elements of any type excluding nodes and 0D elements
762 long_array FindElementsByPoint(in double x, in double y, in double z, in ElementType type)
763 raises (SALOME::SALOME_Exception);
766 * Searching among the given elements, return elements of given type
767 * where the given point is IN or ON.
769 * 'ALL' type means elements of any type excluding nodes and 0D elements
771 long_array FindAmongElementsByPoint(in SMESH_IDSource elements,
772 in double x, in double y, in double z,
774 raises (SALOME::SALOME_Exception);
777 * Return point state in a closed 2D mesh in terms of TopAbs_State enumeration.
778 * TopAbs_UNKNOWN state means that either mesh is wrong or the analysis fails.
780 short GetPointState(in double x, in double y, in double z)
781 raises (SALOME::SALOME_Exception);
784 * Check if a 2D mesh is manifold
787 raises (SALOME::SALOME_Exception);
790 * Check if orientation of 2D elements is coherent
792 boolean IsCoherentOrientation2D()
793 raises (SALOME::SALOME_Exception);
796 * Returns all or only closed FreeBorder's.
798 ListOfFreeBorders FindFreeBorders(in boolean closedOnly)
799 raises (SALOME::SALOME_Exception);
802 * Fill with 2D elements a hole defined by a FreeBorder.
803 * Optionally add new faces to a given group, which is returned.
805 SMESH_Group FillHole(in FreeBorder hole, in string groupName)
806 raises (SALOME::SALOME_Exception);
809 * Returns groups of FreeBorder's coincident within the given tolerance.
810 * If the tolerance <= 0.0 then one tenth of an average size of elements adjacent
811 * to free borders being compared is used.
813 CoincidentFreeBorders FindCoincidentFreeBorders(in double tolerance);
816 * Sew FreeBorder's of each group
818 short SewCoincidentFreeBorders (in CoincidentFreeBorders freeBorders,
819 in boolean createPolygons,
820 in boolean createPolyedrs)
821 raises (SALOME::SALOME_Exception);
825 SEW_BORDER1_NOT_FOUND,
826 SEW_BORDER2_NOT_FOUND,
827 SEW_BOTH_BORDERS_NOT_FOUND,
829 SEW_VOLUMES_TO_SPLIT,
830 // for SewSideElements() only:
831 SEW_DIFF_NB_OF_ELEMENTS,
832 SEW_TOPO_DIFF_SETS_OF_ELEMENTS,
838 Sew_Error SewFreeBorders (in long FirstNodeID1,
839 in long SecondNodeID1,
841 in long FirstNodeID2,
842 in long SecondNodeID2,
844 in boolean CreatePolygons,
845 in boolean CreatePolyedrs)
846 raises (SALOME::SALOME_Exception);
848 Sew_Error SewConformFreeBorders (in long FirstNodeID1,
849 in long SecondNodeID1,
851 in long FirstNodeID2,
852 in long SecondNodeID2)
853 raises (SALOME::SALOME_Exception);
855 Sew_Error SewBorderToSide (in long FirstNodeIDOnFreeBorder,
856 in long SecondNodeIDOnFreeBorder,
857 in long LastNodeIDOnFreeBorder,
858 in long FirstNodeIDOnSide,
859 in long LastNodeIDOnSide,
860 in boolean CreatePolygons,
861 in boolean CreatePolyedrs)
862 raises (SALOME::SALOME_Exception);
864 Sew_Error SewSideElements (in long_array IDsOfSide1Elements,
865 in long_array IDsOfSide2Elements,
866 in long NodeID1OfSide1ToMerge,
867 in long NodeID1OfSide2ToMerge,
868 in long NodeID2OfSide1ToMerge,
869 in long NodeID2OfSide2ToMerge)
870 raises (SALOME::SALOME_Exception);
873 * Set new nodes for given element.
874 * If number of nodes is not corresponded to type of
875 * element - returns false
877 boolean ChangeElemNodes(in long ide, in long_array newIDs)
878 raises (SALOME::SALOME_Exception);
881 * \brief Duplicates given elements, i.e. creates new elements based on the
882 * same nodes as the given ones.
883 * \param theElements - container of elements to duplicate.
884 * \param theGroupName - a name of group to contain the generated elements.
885 * If a group with such a name already exists, the new elements
886 * are added to the existing group, else a new group is created.
887 * If \a theGroupName is empty, new elements are not added
889 * \return a group where the new elements are added. NULL if theGroupName == "".
892 SMESH_Group DoubleElements( in SMESH_IDSource theElements,
893 in string theGroupName )
894 raises (SALOME::SALOME_Exception);
897 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
898 * \param theNodes - identifiers of nodes to be doubled
899 * \param theModifiedElems - identifiers of elements to be updated by the new (doubled)
900 * nodes. If list of element identifiers is empty then nodes are doubled but
901 * they not assigned to elements
902 * \return TRUE if operation has been completed successfully, FALSE otherwise
903 * \sa DoubleNode(), DoubleNodeGroup(), DoubleNodeGroups()
905 boolean DoubleNodes( in long_array theNodes, in long_array theModifiedElems )
906 raises (SALOME::SALOME_Exception);
909 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
910 * This method provided for convenience works as DoubleNodes() described above.
911 * \param theNodeId - identifier of node to be doubled.
912 * \param theModifiedElems - identifiers of elements to be updated.
913 * \return TRUE if operation has been completed successfully, FALSE otherwise
914 * \sa DoubleNodes(), DoubleNodeGroup(), DoubleNodeGroups()
916 boolean DoubleNode( in long theNodeId, in long_array theModifiedElems )
917 raises (SALOME::SALOME_Exception);
920 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
921 * This method provided for convenience works as DoubleNodes() described above.
922 * \param theNodes - group of nodes to be doubled.
923 * \param theModifiedElems - group of elements to be updated.
924 * \return TRUE if operation has been completed successfully, FALSE otherwise
925 * \sa DoubleNode(), DoubleNodes(), DoubleNodeGroups(), DoubleNodeGroupNew()
927 boolean DoubleNodeGroup( in SMESH_GroupBase theNodes,
928 in SMESH_GroupBase theModifiedElems )
929 raises (SALOME::SALOME_Exception);
931 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements.
932 * Works as DoubleNodeGroup() described above, but returns a new group with
933 * newly created nodes.
934 * \param theNodes - group of nodes to be doubled.
935 * \param theModifiedElems - group of elements to be updated.
936 * \return a new group with newly created nodes
937 * \sa DoubleNodeGroup()
939 SMESH_Group DoubleNodeGroupNew( in SMESH_GroupBase theNodes,
940 in SMESH_GroupBase theModifiedElems )
941 raises (SALOME::SALOME_Exception);
944 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
945 * This method provided for convenience works as DoubleNodes() described above.
946 * \param theNodes - list of groups of nodes to be doubled
947 * \param theModifiedElems - list of groups of elements to be updated.
948 * \return TRUE if operation has been completed successfully, FALSE otherwise
949 * \sa DoubleNode(), DoubleNodeGroup(), DoubleNodes()
951 boolean DoubleNodeGroups( in ListOfGroups theNodes,
952 in ListOfGroups theModifiedElems )
953 raises (SALOME::SALOME_Exception);
955 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
956 * Works as DoubleNodeGroups() described above, but returns a new group with
957 * newly created nodes.
958 * \param theNodes - list of groups of nodes to be doubled
959 * \param theModifiedElems - list of groups of elements to be updated.
960 * \return a new group with newly created nodes
961 * \sa DoubleNodeGroups()
963 SMESH_Group DoubleNodeGroupsNew( in ListOfGroups theNodes,
964 in ListOfGroups theModifiedElems )
965 raises (SALOME::SALOME_Exception);
968 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
969 * \param theElems - the list of elements (edges or faces) to be replicated
970 * The nodes for duplication could be found from these elements
971 * \param theNodesNot - list of nodes to NOT replicate
972 * \param theAffectedElems - the list of elements (cells and edges) to which the
973 * replicated nodes should be associated to.
974 * \return TRUE if operation has been completed successfully, FALSE otherwise
975 * \sa DoubleNodeGroup(), DoubleNodeGroups()
977 boolean DoubleNodeElem( in long_array theElems,
978 in long_array theNodesNot,
979 in long_array theAffectedElems )
980 raises (SALOME::SALOME_Exception);
983 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
984 * \param theElems - the list of elements (edges or faces) to be replicated
985 * The nodes for duplication could be found from these elements
986 * \param theNodesNot - list of nodes to NOT replicate
987 * \param theShape - shape to detect affected elements (element which geometric center
988 * located on or inside shape).
989 * The replicated nodes should be associated to affected elements.
990 * \return TRUE if operation has been completed successfully, FALSE otherwise
991 * \sa DoubleNodeGroupInRegion(), DoubleNodeGroupsInRegion()
993 boolean DoubleNodeElemInRegion( in long_array theElems,
994 in long_array theNodesNot,
995 in GEOM::GEOM_Object theShape )
996 raises (SALOME::SALOME_Exception);
999 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
1000 * This method provided for convenience works as DoubleNodes() described above.
1001 * \param theElems - group of of elements (edges or faces) to be replicated
1002 * \param theNodesNot - group of nodes not to replicated
1003 * \param theAffectedElems - group of elements to which the replicated nodes
1004 * should be associated to.
1005 * \return TRUE if operation has been completed successfully, FALSE otherwise
1006 * \sa DoubleNodes(), DoubleNodeGroups(), DoubleNodeElemGroupNew()
1008 boolean DoubleNodeElemGroup( in SMESH_GroupBase theElems,
1009 in SMESH_GroupBase theNodesNot,
1010 in SMESH_GroupBase theAffectedElems )
1011 raises (SALOME::SALOME_Exception);
1013 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements.
1014 * Works as DoubleNodeElemGroup() described above, but returns a new group with
1015 * newly created elements.
1016 * \param theElems - group of of elements (edges or faces) to be replicated
1017 * \param theNodesNot - group of nodes not to replicated
1018 * \param theAffectedElems - group of elements to which the replicated nodes
1019 * should be associated to.
1020 * \return a new group with newly created elements
1021 * \sa DoubleNodeElemGroup()
1023 SMESH_Group DoubleNodeElemGroupNew( in SMESH_GroupBase theElems,
1024 in SMESH_GroupBase theNodesNot,
1025 in SMESH_GroupBase theAffectedElems )
1026 raises (SALOME::SALOME_Exception);
1028 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements.
1029 * Works as DoubleNodeElemGroup() described above, but returns two new groups:
1030 * a group of newly created elements and a group of newly created nodes
1031 * \param theElems - group of of elements (edges or faces) to be replicated
1032 * \param theNodesNot - group of nodes not to replicated
1033 * \param theAffectedElems - group of elements to which the replicated nodes
1034 * should be associated to.
1035 * \param theElemGroupNeeded - to create group of new elements or not
1036 * \param theNodeGroupNeeded - to create group of new nodes or not
1037 * \return two new groups of newly created elements (1st) and nodes (2nd)
1038 * \sa DoubleNodeElemGroup()
1040 ListOfGroups DoubleNodeElemGroup2New( in SMESH_GroupBase theElems,
1041 in SMESH_GroupBase theNodesNot,
1042 in SMESH_GroupBase theAffectedElems,
1043 in boolean theElemGroupNeeded,
1044 in boolean theNodeGroupNeeded)
1045 raises (SALOME::SALOME_Exception);
1048 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
1049 * This method provided for convenience works as DoubleNodes() described above.
1050 * \param theElems - group of elements (edges or faces) to be replicated
1051 * \param theNodesNot - group of nodes not to replicated
1052 * \param theShape - shape to detect affected elements (element which geometric center
1053 * located on or inside shape).
1054 * The replicated nodes should be associated to affected elements.
1055 * \return TRUE if operation has been completed successfully, FALSE otherwise
1056 * \sa DoubleNodesInRegion(), DoubleNodeGroupsInRegion()
1058 boolean DoubleNodeElemGroupInRegion( in SMESH_GroupBase theElems,
1059 in SMESH_GroupBase theNodesNot,
1060 in GEOM::GEOM_Object theShape )
1061 raises (SALOME::SALOME_Exception);
1064 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
1065 * This method provided for convenience works as DoubleNodes() described above.
1066 * \param theElems - list of groups of elements (edges or faces) to be replicated
1067 * \param theNodesNot - list of groups of nodes not to replicated
1068 * \param theAffectedElems - group of elements to which the replicated nodes
1069 * should be associated to.
1070 * \return TRUE if operation has been completed successfully, FALSE otherwise
1071 * \sa DoubleNodeGroup(), DoubleNodes(), DoubleNodeElemGroupsNew()
1073 boolean DoubleNodeElemGroups( in ListOfGroups theElems,
1074 in ListOfGroups theNodesNot,
1075 in ListOfGroups theAffectedElems )
1076 raises (SALOME::SALOME_Exception);
1078 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements.
1079 * Works as DoubleNodeElemGroups() described above, but returns a new group with
1080 * newly created elements.
1081 * \param theElems - list of groups of elements (edges or faces) to be replicated
1082 * \param theNodesNot - list of groups of nodes not to replicated
1083 * \param theAffectedElems - group of elements to which the replicated nodes
1084 * should be associated to.
1085 * \return a new group with newly created elements
1086 * \sa DoubleNodeElemGroups()
1088 SMESH_Group DoubleNodeElemGroupsNew( in ListOfGroups theElems,
1089 in ListOfGroups theNodesNot,
1090 in ListOfGroups theAffectedElems )
1091 raises (SALOME::SALOME_Exception);
1093 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements.
1094 * Works as DoubleNodeElemGroups() described above, but returns two new groups:
1095 * a group of newly created elements and a group of newly created nodes.
1096 * \param theElems - list of groups of elements (edges or faces) to be replicated
1097 * \param theNodesNot - list of groups of nodes not to replicated
1098 * \param theAffectedElems - group of elements to which the replicated nodes
1099 * should be associated to.
1100 * \param theElemGroupNeeded - to create group of new elements or not
1101 * \param theNodeGroupNeeded - to create group of new nodes or not
1102 * \return two new groups of newly created elements (1st) and nodes (2nd)
1103 * \sa DoubleNodeElemGroups()
1105 ListOfGroups DoubleNodeElemGroups2New( in ListOfGroups theElems,
1106 in ListOfGroups theNodesNot,
1107 in ListOfGroups theAffectedElems,
1108 in boolean theElemGroupNeeded,
1109 in boolean theNodeGroupNeeded )
1110 raises (SALOME::SALOME_Exception);
1113 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
1114 * This method provided for convenience works as DoubleNodes() described above.
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 theShape - shape to detect affected elements (element which geometric center
1118 * located on or inside shape).
1119 * The replicated nodes should be associated to affected elements.
1120 * \return TRUE if operation has been completed successfully, FALSE otherwise
1121 * \sa DoubleNodeGroupInRegion(), DoubleNodesInRegion()
1123 boolean DoubleNodeElemGroupsInRegion( in ListOfGroups theElems,
1124 in ListOfGroups theNodesNot,
1125 in GEOM::GEOM_Object theShape )
1126 raises (SALOME::SALOME_Exception);
1129 * \brief Identify the elements that will be affected by node duplication (actual duplication is not performed).
1130 * This method is the first step of DoubleNodeElemGroupsInRegion.
1131 * \param theElems - list of groups of elements (edges or faces) to be replicated
1132 * \param theNodesNot - list of groups of nodes not to replicated
1133 * \param theShape - shape to detect affected elements (element which geometric center
1134 * located on or inside shape).
1135 * The replicated nodes should be associated to affected elements.
1136 * \return groups of affected elements
1137 * \sa DoubleNodeElemGroupsInRegion()
1139 ListOfGroups AffectedElemGroupsInRegion( in ListOfGroups theElems,
1140 in ListOfGroups theNodesNot,
1141 in GEOM::GEOM_Object theShape )
1142 raises (SALOME::SALOME_Exception);
1145 * \brief Generates skin mesh (containing 2D cells) from 3D mesh
1146 * The created 2D mesh elements based on nodes of free faces of boundary volumes
1147 * \return TRUE if operation has been completed successfully, FALSE otherwise
1149 boolean Make2DMeshFrom3D() raises (SALOME::SALOME_Exception);
1152 * \brief Creates missing boundary elements
1153 * \param elements - elements whose boundary is to be checked
1154 * \param dimension - defines type of boundary elements to create
1155 * BND_1DFROM3D creates mesh edges on all borders of free facets of 3D elements.
1156 * \param groupName - a name of group to store created boundary elements in,
1157 * "" means not to create the group
1158 * \param meshName - a name of new mesh to store created boundary elements in,
1159 * "" means not to create the new mesh
1160 * \param toCopyElements - if true, the checked elements will be copied into the new mesh
1161 * else only boundary elements will be copied into the new mesh
1162 * \param toCopyExistingBondary - if true, not only new but also pre-existing
1163 * boundary elements will be copied into the new mesh
1164 * \param group - returns the create group, if any
1165 * \retval SMESH::SMESH_Mesh - the mesh where elements were added to
1167 SMESH_Mesh MakeBoundaryMesh(in SMESH_IDSource elements,
1168 in Bnd_Dimension dimension,
1169 in string groupName,
1171 in boolean toCopyElements,
1172 in boolean toCopyExistingBondary,
1173 out SMESH_Group group) raises (SALOME::SALOME_Exception);
1175 * \brief Creates missing boundary elements around either the whole mesh or
1176 * groups of 2D elements
1177 * \param dimension - defines type of boundary elements to create
1178 * \param groupName - a name of group to store all boundary elements in,
1179 * "" means not to create the group
1180 * \param meshName - a name of a new mesh, which is a copy of the initial
1181 * mesh + created boundary elements; "" means not to create the new mesh
1182 * \param toCopyAll - if true, the whole initial mesh will be copied into
1183 * the new mesh else only boundary elements will be copied into the new mesh
1184 * \param groups - optional groups of 2D elements to make boundary around
1185 * \param mesh - returns the mesh where elements were added to
1186 * \param group - returns the created group, if any
1187 * \retval long - number of added boundary elements
1189 long MakeBoundaryElements(in Bnd_Dimension dimension,
1190 in string groupName,
1192 in boolean toCopyAll,
1193 in ListOfIDSources groups,
1194 out SMESH_Mesh mesh,
1195 out SMESH_Group group) raises (SALOME::SALOME_Exception);
1198 * \brief Double nodes on shared faces between groups of volumes and create flat elements on demand.
1199 * Flat elements are mainly used by some types of mechanic calculations.
1201 * The list of groups must describe a partition of the mesh volumes.
1202 * The nodes of the internal faces at the boundaries of the groups are doubled.
1203 * In option, the internal faces are replaced by flat elements.
1204 * Triangles are transformed in prisms, and quadrangles in hexahedrons.
1205 * \param theDomains - list of groups of volumes
1206 * \param createJointElems - if TRUE, create the elements
1207 * \param onAllBoundaries - if TRUE, the nodes and elements are also created on
1208 * the boundary between \a theDomains and the rest mesh
1209 * \return TRUE if operation has been completed successfully, FALSE otherwise
1211 boolean DoubleNodesOnGroupBoundaries( in ListOfGroups theDomains,
1212 in boolean createJointElems,
1213 in boolean onAllBoundaries)
1214 raises (SALOME::SALOME_Exception);
1217 * \brief Double nodes on some external faces and create flat elements.
1218 * Flat elements are mainly used by some types of mechanic calculations.
1220 * Each group of the list must be constituted of faces.
1221 * Triangles are transformed in prisms, and quadrangles in hexahedrons.
1222 * \param theGroupsOfFaces - list of groups of faces
1223 * \return TRUE if operation has been completed successfully, FALSE otherwise
1225 boolean CreateFlatElementsOnFacesGroups( in ListOfGroups theGroupsOfFaces )
1226 raises (SALOME::SALOME_Exception);
1229 * \brief identify all the elements around a geom shape, get the faces delimiting the hole
1230 * Build groups of volume to remove, groups of faces to replace on the skin of the object,
1231 * groups of faces to remove insidethe object, (idem edges).
1232 * Build ordered list of nodes at the border of each group of faces to replace (to be used to build a geom subshape)
1234 void CreateHoleSkin(in double radius,
1235 in GEOM::GEOM_Object theShape,
1236 in string groupName,
1237 in double_array theNodesCoords,
1238 out array_of_long_array GroupsOfNodes)
1239 raises (SALOME::SALOME_Exception);
1243 * \brief Create a polyline consisting of 1D mesh elements each lying on a 2D element of
1244 * the initial mesh. Positions of new nodes are found by cutting the mesh by the
1245 * plane passing through pairs of points specified by each PolySegment structure.
1246 * If there are several paths connecting a pair of points, the shortest path is
1247 * selected by the module. Position of the cutting plane is defined by the two
1248 * points and an optional vector lying on the plane specified by a PolySegment.
1249 * By default the vector is defined by Mesh module as following. A middle point
1250 * of the two given points is computed. The middle point is projected to the mesh.
1251 * The vector goes from the middle point to the projection point. In case of planar
1252 * mesh, the vector is normal to the mesh.
1253 * \param [inout] segments - PolySegment's defining positions of cutting planes.
1254 * Return the used vector which goes from the middle point to its projection.
1255 * \param [in] groupName - optional name of a group where created mesh segments will
1258 void MakePolyLine(inout ListOfPolySegments segments,
1259 in string groupName)
1260 raises (SALOME::SALOME_Exception);