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 // a point is defined as follows:
64 // ( node*ID1 > 0 && node*ID2 > 0 ) ==> point is in the middle of an edge defined by two nodes
65 // ( node*ID1 > 0 && node*ID2 <=0 ) ==> point is at node*ID1
66 // else ==> point is at xyz*
78 // vector on the plane; to use a default plane set vector = (0,0,0)
81 typedef sequence<PolySegment> ListOfPolySegments;
83 // face edge defined by two nodes + optional medium node
90 typedef sequence<FaceEdge> ListOfEdges;
94 * This interface makes modifications on the Mesh - removing elements and nodes etc.
95 * Also provides some analysis functions.
97 interface SMESH_MeshEditor
100 * Returns a mesh subject to edition
102 SMESH_Mesh GetMesh();
105 * Return data of mesh edition preview which is computed provided
106 * that the editor was obtained through SMESH_Mesh::GetMeshEditPreviewer()
108 MeshPreviewStruct GetPreviewData() raises (SALOME::SALOME_Exception);
111 * If during last operation of MeshEditor some nodes were
112 * created, this method returns list of their IDs, if new nodes
113 * not created - returns empty list
115 long_array GetLastCreatedNodes() raises (SALOME::SALOME_Exception);
118 * If during last operation of MeshEditor some elements were
119 * created, this method returns list of their IDs, if new elements
120 * not created - returns empty list
122 long_array GetLastCreatedElems() raises (SALOME::SALOME_Exception);
125 * \brief Clears sequences of last created elements and nodes
127 void ClearLastCreated() raises (SALOME::SALOME_Exception);
130 * \brief Returns description of an error/warning occurred during the last operation
132 ComputeError GetLastError() raises (SALOME::SALOME_Exception);
135 * \brief Wrap a sequence of ids in a SMESH_IDSource
136 * \param IDsOfElements list of mesh elements identifiers
137 * \return new ID source object
139 SMESH_IDSource MakeIDSource(in long_array IDsOfElements, in ElementType type);
142 * \brief Remove mesh elements specified by their identifiers.
143 * \param IDsOfElements list of mesh elements identifiers
144 * \return \c true if elements are correctly removed or \c false otherwise
146 boolean RemoveElements(in long_array IDsOfElements) raises (SALOME::SALOME_Exception);
149 * \brief Remove mesh nodes specified by their identifiers.
150 * \param IDsOfNodes list of mesh nodes identifiers
151 * \return \c true if nodes are correctly removed or \c false otherwise
153 boolean RemoveNodes(in long_array IDsOfNodes) raises (SALOME::SALOME_Exception);
156 * \brief Remove all orphan nodes.
157 * \return number of removed nodes
159 long RemoveOrphanNodes() raises (SALOME::SALOME_Exception);
162 * \brief Add a new node.
163 * \param x X coordinate of new node
164 * \param y Y coordinate of new node
165 * \param z Z coordinate of new node
166 * \return integer identifier of new node
168 long AddNode(in double x, in double y, in double z) raises (SALOME::SALOME_Exception);
171 * Create a 0D element on the given node.
172 * \param IdOfNode Node IDs for creation of element.
173 * \param DuplicateElements to add one more 0D element to a node or not
175 long Add0DElement(in long IDOfNode,
176 in boolean DuplicateElements) raises (SALOME::SALOME_Exception);
179 * Create a ball element on the given node.
180 * \param IdOfNode Node IDs for creation of element.
182 long AddBall(in long IDOfNode, in double diameter) raises (SALOME::SALOME_Exception);
185 * Create an edge, either linear and quadratic (this is determed
186 * by number of given nodes, two or three).
187 * \param IdsOfNodes List of node IDs for creation of element.
188 * Needed order of nodes in this list corresponds to description
189 * of MED. This description is located by the following link:
190 * http://www.salome-platform.org/salome2/web_med_internet/logiciels/medV2.2.2_doc_html/html/modele_de_donnees.html#3.
192 long AddEdge(in long_array IDsOfNodes) raises (SALOME::SALOME_Exception);
195 * Create face, either linear and quadratic (this is determed
196 * by number of given nodes).
197 * \param IdsOfNodes List of node IDs for creation of element.
198 * Needed order of nodes in this list corresponds to description
199 * of MED. This description is located by the following link:
200 * http://www.salome-platform.org/salome2/web_med_internet/logiciels/medV2.2.2_doc_html/html/modele_de_donnees.html#3.
202 long AddFace(in long_array IDsOfNodes) raises (SALOME::SALOME_Exception);
204 long AddPolygonalFace(in long_array IdsOfNodes) raises (SALOME::SALOME_Exception);
207 * Create a quadratic polygonal face
208 * \param IdsOfNodes - nodes of the polygon; corner nodes follow first
209 * \return long - ID of a new polygon
211 long AddQuadPolygonalFace(in long_array IdsOfNodes) raises (SALOME::SALOME_Exception);
214 * Create volume, either linear and quadratic (this is determed
215 * by number of given nodes).
216 * \param IdsOfNodes List of node IDs for creation of element.
217 * Needed order of nodes in this list corresponds to description
218 * of MED. This description is located by the following link:
219 * http://www.salome-platform.org/salome2/web_med_internet/logiciels/medV2.2.2_doc_html/html/modele_de_donnees.html#3.
221 long AddVolume(in long_array IDsOfNodes) raises (SALOME::SALOME_Exception);
224 * Create volume of many faces, giving nodes for each face.
225 * \param IdsOfNodes List of node IDs for volume creation face by face.
226 * \param Quantities List of integer values, Quantities[i]
227 * gives quantity of nodes in face number i.
229 long AddPolyhedralVolume (in long_array IdsOfNodes,
230 in long_array Quantities) raises (SALOME::SALOME_Exception);
232 * Create volume of many faces, giving IDs of existing faces.
233 * \param IdsOfFaces List of face IDs for volume creation.
234 * \note The created volume will refer only to nodes
235 * of the given faces, not to the faces itself.
237 long AddPolyhedralVolumeByFaces (in long_array IdsOfFaces) raises (SALOME::SALOME_Exception);
240 * Create 0D elements on all nodes of the given object.
241 * \param theObject object on whose nodes 0D elements will be created.
242 * \param theGroupName optional name of a group to add 0D elements created
243 * and/or found on nodes of \a theObject.
244 * \param theDuplicateElements to add one more 0D element to a node or not
245 * \return an object (a new group or a temporary SMESH_IDSource) holding
246 * ids of new and/or found 0D elements.
248 SMESH_IDSource Create0DElementsOnAllNodes(in SMESH_IDSource theObject,
249 in string theGroupName,
250 in boolean theDuplicateElements)
251 raises (SALOME::SALOME_Exception);
254 * \brief Bind a node to a vertex
255 * \param NodeID - node ID
256 * \param VertexID - vertex ID available through GEOM_Object.GetSubShapeIndices()[0]
258 void SetNodeOnVertex(in long NodeID, in long VertexID)
259 raises (SALOME::SALOME_Exception);
261 * \brief Store node position on an edge
262 * \param NodeID - node ID
263 * \param EdgeID - edge ID available through GEOM_Object.GetSubShapeIndices()[0]
264 * \param paramOnEdge - parameter on edge where the node is located
266 void SetNodeOnEdge(in long NodeID, in long EdgeID, in double paramOnEdge)
267 raises (SALOME::SALOME_Exception);
269 * \brief Store node position on a face
270 * \param NodeID - node ID
271 * \param FaceID - face ID available through GEOM_Object.GetSubShapeIndices()[0]
272 * \param u - U parameter on face where the node is located
273 * \param v - V parameter on face where the node is located
275 void SetNodeOnFace(in long NodeID, in long FaceID, in double u, in double v)
276 raises (SALOME::SALOME_Exception);
278 * \brief Bind a node to a solid
279 * \param NodeID - node ID
280 * \param SolidID - vertex ID available through GEOM_Object.GetSubShapeIndices()[0]
282 void SetNodeInVolume(in long NodeID, in long SolidID)
283 raises (SALOME::SALOME_Exception);
285 * \brief Bind an element to a shape
286 * \param ElementID - element ID
287 * \param ShapeID - shape ID available through GEOM_Object.GetSubShapeIndices()[0]
289 void SetMeshElementOnShape(in long ElementID, in long ShapeID)
290 raises (SALOME::SALOME_Exception);
293 boolean MoveNode(in long NodeID, in double x, in double y, in double z)
294 raises (SALOME::SALOME_Exception);
296 boolean InverseDiag(in long NodeID1, in long NodeID2)
297 raises (SALOME::SALOME_Exception);
299 boolean DeleteDiag(in long NodeID1, in long NodeID2)
300 raises (SALOME::SALOME_Exception);
302 boolean Reorient(in long_array IDsOfElements)
303 raises (SALOME::SALOME_Exception);
305 boolean ReorientObject(in SMESH_IDSource theObject)
306 raises (SALOME::SALOME_Exception);
308 * \brief Reorient faces contained in \a the2Dgroup.
309 * \param the2Dgroup - the mesh or its part to reorient
310 * \param theDirection - desired direction of normal of \a theFace
311 * \param theFace - ID of face whose orientation is checked.
312 * It can be < 1 then \a thePoint is used to find a face.
313 * \param thePoint - is used to find a face if \a theFace < 1.
314 * \return number of reoriented faces.
316 long Reorient2D(in SMESH_IDSource the2Dgroup,
317 in DirStruct theDirection,
319 in PointStruct thePoint) raises (SALOME::SALOME_Exception);
321 * \brief Reorient faces basing on orientation of adjacent volumes.
322 * \param faces - a list of objects containing face to reorient
323 * \param volumes - an object containing volumes.
324 * \param outsideNormal - to orient faces to have their normal
325 * pointing either \a outside or \a inside the adjacent volumes.
326 * \return number of reoriented faces.
328 long Reorient2DBy3D(in ListOfIDSources faces,
329 in SMESH_IDSource volumes,
330 in boolean outsideNormal) raises (SALOME::SALOME_Exception);
333 * \brief Fuse neighbour triangles into quadrangles.
334 * \param IDsOfElements Ids of triangles to be fused.
335 * \param theCriterion Is used to choose a neighbour to fuse with.
336 * \param theMaxAngle Is a max angle between element normals at which fusion
337 * is still performed; theMaxAngle is measured in radians.
338 * \return \c true in case of success, FALSE otherwise.
340 boolean TriToQuad (in long_array IDsOfElements,
341 in NumericalFunctor Criterion,
342 in double MaxAngle) raises (SALOME::SALOME_Exception);
344 * \brief Fuse neighbour triangles into quadrangles.
346 * Behaves like the above method, taking a list of elements from \a theObject
348 boolean TriToQuadObject (in SMESH_IDSource theObject,
349 in NumericalFunctor Criterion,
350 in double MaxAngle) raises (SALOME::SALOME_Exception);
353 * \brief Split quadrangles into triangles.
354 * \param IDsOfElements Ids of quadrangles to split.
355 * \param theCriterion Is used to choose a diagonal for splitting.
356 * \return TRUE in case of success, FALSE otherwise.
358 boolean QuadToTri (in long_array IDsOfElements,
359 in NumericalFunctor Criterion) raises (SALOME::SALOME_Exception);
361 * \brief Split quadrangles into triangles.
363 * Behaves like the above method, taking a list of elements from \a theObject
365 boolean QuadToTriObject (in SMESH_IDSource theObject,
366 in NumericalFunctor Criterion) raises (SALOME::SALOME_Exception);
368 * \brief Split each of quadrangles into 4 triangles.
369 * \param theQuads Container of quadrangles to split.
371 void QuadTo4Tri (in SMESH_IDSource theQuads) raises (SALOME::SALOME_Exception);
374 * \brief Split quadrangles into triangles.
375 * \param theElems The faces to be split.
376 * \param the13Diag Is used to choose a diagonal for splitting.
377 * \return TRUE in case of success, FALSE otherwise.
379 boolean SplitQuad (in long_array IDsOfElements,
380 in boolean Diag13) raises (SALOME::SALOME_Exception);
382 * \brief Split quadrangles into triangles.
384 * Behaves like the above method, taking list of elements from \a theObject
386 boolean SplitQuadObject (in SMESH_IDSource theObject,
387 in boolean Diag13) raises (SALOME::SALOME_Exception);
390 * Find better splitting of the given quadrangle.
391 * \param IDOfQuad ID of the quadrangle to be split.
392 * \param Criterion A criterion to choose a diagonal for splitting.
393 * \return 1 if 1-3 diagonal is better, 2 if 2-4
394 * diagonal is better, 0 if error occurs.
396 long BestSplit (in long IDOfQuad,
397 in NumericalFunctor Criterion) raises (SALOME::SALOME_Exception);
400 * \brief Split volumic elements into tetrahedrons
401 * \param elems - elements to split
402 * \param methodFlags - flags passing splitting method:
403 * 1 - split the hexahedron into 5 tetrahedrons
404 * 2 - split the hexahedron into 6 tetrahedrons
405 * 3 - split the hexahedron into 24 tetrahedrons
407 void SplitVolumesIntoTetra(in SMESH_IDSource elems, in short methodFlags)
408 raises (SALOME::SALOME_Exception);
411 * \brief Split hexahedra into triangular prisms
412 * \param elems - elements to split
413 * \param startHexPoint - a point used to find a hexahedron for which \a facetToSplitNormal
414 * gives a normal vector defining facets to split into triangles.
415 * \param facetToSplitNormal - normal used to find a facet of hexahedron
416 * to split into triangles.
417 * \param methodFlags - flags passing splitting method:
418 * 1 - split the hexahedron into 2 prisms
419 * 2 - split the hexahedron into 4 prisms
420 * \param allDomains - if \c False, only hexahedra adjacent to one closest
421 * to \a facetToSplitNormal location are split, else \a facetToSplitNormal
422 * is used to find the facet to split in all domains present in \a elems.
424 void SplitHexahedraIntoPrisms(in SMESH_IDSource elems,
425 in SMESH::PointStruct startHexPoint,
426 in SMESH::DirStruct facetToSplitNormal,
427 in short methodFlags,
428 in boolean allDomains)
429 raises (SALOME::SALOME_Exception);
432 * \brief Split bi-quadratic elements into linear ones without creation of additional nodes.
433 * - bi-quadratic triangle will be split into 3 linear quadrangles;
434 * - bi-quadratic quadrangle will be split into 4 linear quadrangles;
435 * - tri-quadratic hexahedron will be split into 8 linear hexahedra;
436 * Quadratic elements of lower dimension adjacent to the split bi-quadratic element
437 * will be split in order to keep the mesh conformal.
438 * \param elems - elements to split
440 void SplitBiQuadraticIntoLinear(in ListOfIDSources elems)
441 raises (SALOME::SALOME_Exception);
444 enum Smooth_Method { LAPLACIAN_SMOOTH, CENTROIDAL_SMOOTH };
446 boolean Smooth(in long_array IDsOfElements,
447 in long_array IDsOfFixedNodes,
448 in long MaxNbOfIterations,
449 in double MaxAspectRatio,
450 in Smooth_Method Method) raises (SALOME::SALOME_Exception);
452 boolean SmoothObject(in SMESH_IDSource theObject,
453 in long_array IDsOfFixedNodes,
454 in long MaxNbOfIterations,
455 in double MaxAspectRatio,
456 in Smooth_Method Method) raises (SALOME::SALOME_Exception);
458 boolean SmoothParametric(in long_array IDsOfElements,
459 in long_array IDsOfFixedNodes,
460 in long MaxNbOfIterations,
461 in double MaxAspectRatio,
462 in Smooth_Method Method) raises (SALOME::SALOME_Exception);
464 boolean SmoothParametricObject(in SMESH_IDSource theObject,
465 in long_array IDsOfFixedNodes,
466 in long MaxNbOfIterations,
467 in double MaxAspectRatio,
468 in Smooth_Method Method) raises (SALOME::SALOME_Exception);
470 void ConvertToQuadratic(in boolean theForce3d)
471 raises (SALOME::SALOME_Exception);
472 void ConvertToQuadraticObject(in boolean theForce3d,
473 in SMESH_IDSource theObject)
474 raises (SALOME::SALOME_Exception);
476 boolean ConvertFromQuadratic()
477 raises (SALOME::SALOME_Exception);
478 void ConvertFromQuadraticObject(in SMESH_IDSource theObject)
479 raises (SALOME::SALOME_Exception);
481 void ConvertToBiQuadratic(in boolean theForce3d,
482 in SMESH_IDSource theObject)
483 raises (SALOME::SALOME_Exception);
485 void RenumberNodes() raises (SALOME::SALOME_Exception);
487 void RenumberElements() raises (SALOME::SALOME_Exception);
490 * \brief Generate dim+1 elements by rotation of the object around axis
491 * \param Nodes - nodes to revolve: a list including groups, sub-meshes or a mesh
492 * \param Edges - edges to revolve: a list including groups, sub-meshes or a mesh
493 * \param Faces - faces to revolve: a list including groups, sub-meshes or a mesh
494 * \param Axis - rotation axis
495 * \param AngleInRadians - rotation angle
496 * \param NbOfSteps - number of elements to generate from one element
497 * \param ToMakeGroups - if true, new elements will be included into new groups
498 * corresponding to groups the input elements included in.
499 * \return ListOfGroups - new groups created if \a ToMakeGroups is true
501 ListOfGroups RotationSweepObjects(in ListOfIDSources Nodes,
502 in ListOfIDSources Edges,
503 in ListOfIDSources Faces,
505 in double AngleInRadians,
508 in boolean ToMakeGroups)
509 raises (SALOME::SALOME_Exception);
512 * \brief Generate dim+1 elements by extrusion of elements along vector
513 * \param nodes - nodes to extrude: a list including groups, sub-meshes or a mesh
514 * \param edges - edges to extrude: a list including groups, sub-meshes or a mesh
515 * \param faces - faces to extrude: a list including groups, sub-meshes or a mesh
516 * \param stepVector - vector giving direction and distance of an extrusion step
517 * \param nbOfSteps - number of elements to generate from one element
518 * \param toMakeGroups - if true, new elements will be included into new groups
519 * corresponding to groups the input elements included in.
520 * \return ListOfGroups - new groups created if \a toMakeGroups is true
522 ListOfGroups ExtrusionSweepObjects(in ListOfIDSources nodes,
523 in ListOfIDSources edges,
524 in ListOfIDSources faces,
525 in DirStruct stepVector,
527 in double_array scaleFactors,
528 in boolean linearVariation,
529 in double_array basePoint,
530 in boolean toMakeGroups)
531 raises (SALOME::SALOME_Exception);
533 /*! Generates new elements by extrusion along the normal to a discretized surface or wire
535 ListOfGroups ExtrusionByNormal(in ListOfIDSources theObjects,
538 in boolean byAverageNormal,
539 in boolean useInputElemsOnly,
540 in boolean makeGroups,
542 raises (SALOME::SALOME_Exception);
545 * Generate new elements by extrusion of theElements
546 * by StepVector by NbOfSteps
547 * \param ExtrFlags set flags for performing extrusion
548 * \param SewTolerance - uses for comparing locations of nodes if flag
549 * EXTRUSION_FLAG_SEW is set
550 * \param ToMakeGroups - if true, new elements will be included into new groups
551 * corresponding to groups the input elements included in.
552 * \return ListOfGroups - new groups created if \a ToMakeGroups is true
554 ListOfGroups AdvancedExtrusion(in long_array IDsOfElements,
555 in DirStruct StepVector,
558 in double SewTolerance,
559 in boolean ToMakeGroups)
560 raises (SALOME::SALOME_Exception);
562 enum Extrusion_Error {
567 EXTR_BAD_STARTING_NODE,
568 EXTR_BAD_ANGLES_NUMBER,
569 EXTR_CANT_GET_TANGENT
572 ListOfGroups ExtrusionAlongPathObjects(in ListOfIDSources Nodes,
573 in ListOfIDSources Edges,
574 in ListOfIDSources Faces,
575 in SMESH_IDSource Path,
576 in GEOM::GEOM_Object PathShape,
578 in boolean HasAngles,
579 in double_array Angles,
580 in boolean LinearVariation,
581 in boolean HasRefPoint,
582 in PointStruct RefPoint,
583 in boolean MakeGroups,
584 out Extrusion_Error Error)
585 raises (SALOME::SALOME_Exception);
588 * Compute rotation angles for ExtrusionAlongPath as linear variation
589 * of given angles along path steps
590 * param PathMesh mesh containing a 1D sub-mesh on the edge, along
591 * which proceeds the extrusion
592 * param PathShape is shape(edge); as the mesh can be complex, the edge
593 * is used to define the sub-mesh for the path
595 double_array LinearAnglesVariation(in SMESH_Mesh PathMesh,
596 in GEOM::GEOM_Object PathShape,
597 in double_array Angles);
599 enum MirrorType { POINT, AXIS, PLANE };
601 void Mirror (in long_array IDsOfElements,
602 in AxisStruct Mirror,
605 raises (SALOME::SALOME_Exception);
606 ListOfGroups MirrorMakeGroups (in long_array IDsOfElements,
607 in AxisStruct Mirror,
609 raises (SALOME::SALOME_Exception);
610 SMESH_Mesh MirrorMakeMesh (in long_array IDsOfElements,
611 in AxisStruct Mirror,
613 in boolean CopyGroups,
615 raises (SALOME::SALOME_Exception);
617 void MirrorObject (in SMESH_IDSource theObject,
618 in AxisStruct Mirror,
621 raises (SALOME::SALOME_Exception);
622 ListOfGroups MirrorObjectMakeGroups (in SMESH_IDSource theObject,
623 in AxisStruct Mirror,
625 raises (SALOME::SALOME_Exception);
626 SMESH_Mesh MirrorObjectMakeMesh (in SMESH_IDSource theObject,
627 in AxisStruct Mirror,
629 in boolean CopyGroups,
631 raises (SALOME::SALOME_Exception);
633 void Translate (in long_array IDsOfElements,
636 raises (SALOME::SALOME_Exception);
637 ListOfGroups TranslateMakeGroups (in long_array IDsOfElements,
639 raises (SALOME::SALOME_Exception);
640 SMESH_Mesh TranslateMakeMesh (in long_array IDsOfElements,
642 in boolean CopyGroups,
644 raises (SALOME::SALOME_Exception);
646 void TranslateObject (in SMESH_IDSource theObject,
649 raises (SALOME::SALOME_Exception);
650 ListOfGroups TranslateObjectMakeGroups (in SMESH_IDSource theObject,
652 raises (SALOME::SALOME_Exception);
653 SMESH_Mesh TranslateObjectMakeMesh (in SMESH_IDSource theObject,
655 in boolean CopyGroups,
657 raises (SALOME::SALOME_Exception);
659 void Scale (in SMESH_IDSource theObject,
660 in PointStruct thePoint,
661 in double_array theScaleFact,
663 raises (SALOME::SALOME_Exception);
664 ListOfGroups ScaleMakeGroups (in SMESH_IDSource theObject,
665 in PointStruct thePoint,
666 in double_array theScaleFact)
667 raises (SALOME::SALOME_Exception);
668 SMESH_Mesh ScaleMakeMesh (in SMESH_IDSource theObject,
669 in PointStruct thePoint,
670 in double_array theScaleFact,
671 in boolean CopyGroups,
673 raises (SALOME::SALOME_Exception);
675 void Rotate (in long_array IDsOfElements,
677 in double AngleInRadians,
679 raises (SALOME::SALOME_Exception);
680 ListOfGroups RotateMakeGroups (in long_array IDsOfElements,
682 in double AngleInRadians)
683 raises (SALOME::SALOME_Exception);
684 SMESH_Mesh RotateMakeMesh (in long_array IDsOfElements,
686 in double AngleInRadians,
687 in boolean CopyGroups,
689 raises (SALOME::SALOME_Exception);
691 void RotateObject (in SMESH_IDSource theObject,
693 in double AngleInRadians,
695 raises (SALOME::SALOME_Exception);
696 ListOfGroups RotateObjectMakeGroups (in SMESH_IDSource theObject,
698 in double AngleInRadians)
699 raises (SALOME::SALOME_Exception);
700 SMESH_Mesh RotateObjectMakeMesh (in SMESH_IDSource theObject,
702 in double AngleInRadians,
703 in boolean CopyGroups,
705 raises (SALOME::SALOME_Exception);
707 SMESH_Mesh Offset(in SMESH_IDSource theObject,
709 in boolean CopyGroups,
710 in boolean CopyElements,
712 out ListOfGroups Groups)
713 raises (SALOME::SALOME_Exception);
715 void FindCoincidentNodes (in double Tolerance,
716 out array_of_long_array GroupsOfNodes,
717 in boolean SeparateCornersAndMedium)
718 raises (SALOME::SALOME_Exception);
720 void FindCoincidentNodesOnPart (in SMESH_IDSource SubMeshOrGroup,
722 out array_of_long_array GroupsOfNodes,
723 in boolean SeparateCornersAndMedium)
724 raises (SALOME::SALOME_Exception);
726 void FindCoincidentNodesOnPartBut (in SMESH_IDSource SubMeshOrGroup,
728 out array_of_long_array GroupsOfNodes,
729 in ListOfIDSources ExceptSubMeshOrGroups,
730 in boolean SeparateCornersAndMedium)
731 raises (SALOME::SALOME_Exception);
733 void MergeNodes (in array_of_long_array GroupsOfNodes,
734 in SMESH::ListOfIDSources NodesToKeep,
735 in boolean AvoidMakingHoles)
736 raises (SALOME::SALOME_Exception);
739 * \brief Find elements built on the same nodes.
740 * \param MeshOrSubMeshOrGroup Mesh or SubMesh, or Group of elements for searching.
741 * \return List of groups of equal elements.
743 void FindEqualElements (in SMESH_IDSource MeshOrSubMeshOrGroup,
744 out array_of_long_array GroupsOfElementsID)
745 raises (SALOME::SALOME_Exception);
748 * \brief Merge elements in each given group.
749 * \param GroupsOfElementsID Groups of elements for merging.
751 void MergeElements(in array_of_long_array GroupsOfElementsID)
752 raises (SALOME::SALOME_Exception);
755 * \brief Merge equal elements in the whole mesh.
757 void MergeEqualElements()
758 raises (SALOME::SALOME_Exception);
761 * If the given ID is a valid node ID (nodeID > 0), just move this node, else
762 * move the node closest to the point to point's location and return ID of the node
764 long MoveClosestNodeToPoint(in double x, in double y, in double z, in long nodeID)
765 raises (SALOME::SALOME_Exception);
768 * Return ID of node closest to a given point
770 long FindNodeClosestTo(in double x, in double y, in double z)
771 raises (SALOME::SALOME_Exception);
774 * Return elements of given type where the given point is IN or ON.
776 * 'ALL' type means elements of any type excluding nodes and 0D elements
778 long_array FindElementsByPoint(in double x, in double y, in double z, in ElementType type)
779 raises (SALOME::SALOME_Exception);
782 * Searching among the given elements, return elements of given type
783 * where the given point is IN or ON.
785 * 'ALL' type means elements of any type excluding nodes and 0D elements
787 long_array FindAmongElementsByPoint(in SMESH_IDSource elements,
788 in double x, in double y, in double z,
790 raises (SALOME::SALOME_Exception);
793 * Project a point to a mesh object.
794 * Return ID of an element of given type where the given point is projected
795 * and coordinates of the projection point.
796 * In the case if nothing found, return -1 and []
798 long ProjectPoint(in double x,
801 in SMESH_IDSource meshObject,
803 out double_array projecton)
804 raises (SALOME::SALOME_Exception);
807 * Return point state in a closed 2D mesh in terms of TopAbs_State enumeration.
808 * TopAbs_UNKNOWN state means that either mesh is wrong or the analysis fails.
810 short GetPointState(in double x, in double y, in double z)
811 raises (SALOME::SALOME_Exception);
814 * Check if a 2D mesh is manifold
817 raises (SALOME::SALOME_Exception);
820 * Check if orientation of 2D elements is coherent
822 boolean IsCoherentOrientation2D()
823 raises (SALOME::SALOME_Exception);
826 * Return sharp edges of faces and non-manifold ones.
827 * Optionally add existing edges. Angle is in degrees.
829 ListOfEdges FindSharpEdges(in double angle, in boolean addExistingEdges)
830 raises (SALOME::SALOME_Exception);
833 * Returns all or only closed FreeBorder's.
835 ListOfFreeBorders FindFreeBorders(in boolean closedOnly)
836 raises (SALOME::SALOME_Exception);
839 * Fill with 2D elements a hole defined by a FreeBorder.
840 * Optionally add new faces to a given group, which is returned.
842 SMESH_Group FillHole(in FreeBorder hole, in string groupName)
843 raises (SALOME::SALOME_Exception);
846 * Returns groups of FreeBorder's coincident within the given tolerance.
847 * If the tolerance <= 0.0 then one tenth of an average size of elements adjacent
848 * to free borders being compared is used.
850 CoincidentFreeBorders FindCoincidentFreeBorders(in double tolerance);
853 * Sew FreeBorder's of each group
855 short SewCoincidentFreeBorders (in CoincidentFreeBorders freeBorders,
856 in boolean createPolygons,
857 in boolean createPolyedrs)
858 raises (SALOME::SALOME_Exception);
862 SEW_BORDER1_NOT_FOUND,
863 SEW_BORDER2_NOT_FOUND,
864 SEW_BOTH_BORDERS_NOT_FOUND,
866 SEW_VOLUMES_TO_SPLIT,
867 // for SewSideElements() only:
868 SEW_DIFF_NB_OF_ELEMENTS,
869 SEW_TOPO_DIFF_SETS_OF_ELEMENTS,
875 Sew_Error SewFreeBorders (in long FirstNodeID1,
876 in long SecondNodeID1,
878 in long FirstNodeID2,
879 in long SecondNodeID2,
881 in boolean CreatePolygons,
882 in boolean CreatePolyedrs)
883 raises (SALOME::SALOME_Exception);
885 Sew_Error SewConformFreeBorders (in long FirstNodeID1,
886 in long SecondNodeID1,
888 in long FirstNodeID2,
889 in long SecondNodeID2)
890 raises (SALOME::SALOME_Exception);
892 Sew_Error SewBorderToSide (in long FirstNodeIDOnFreeBorder,
893 in long SecondNodeIDOnFreeBorder,
894 in long LastNodeIDOnFreeBorder,
895 in long FirstNodeIDOnSide,
896 in long LastNodeIDOnSide,
897 in boolean CreatePolygons,
898 in boolean CreatePolyedrs)
899 raises (SALOME::SALOME_Exception);
901 Sew_Error SewSideElements (in long_array IDsOfSide1Elements,
902 in long_array IDsOfSide2Elements,
903 in long NodeID1OfSide1ToMerge,
904 in long NodeID1OfSide2ToMerge,
905 in long NodeID2OfSide1ToMerge,
906 in long NodeID2OfSide2ToMerge)
907 raises (SALOME::SALOME_Exception);
910 * Set new nodes for given element.
911 * If number of nodes is not corresponded to type of
912 * element - returns false
914 boolean ChangeElemNodes(in long ide, in long_array newIDs)
915 raises (SALOME::SALOME_Exception);
918 * \brief Duplicates given elements, i.e. creates new elements based on the
919 * same nodes as the given ones.
920 * \param theElements - container of elements to duplicate.
921 * \param theGroupName - a name of group to contain the generated elements.
922 * If a group with such a name already exists, the new elements
923 * are added to the existing group, else a new group is created.
924 * If \a theGroupName is empty, new elements are not added
926 * \return a group where the new elements are added. NULL if theGroupName == "".
929 SMESH_Group DoubleElements( in SMESH_IDSource theElements,
930 in string theGroupName )
931 raises (SALOME::SALOME_Exception);
934 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
935 * \param theNodes - identifiers of nodes to be doubled
936 * \param theModifiedElems - identifiers of elements to be updated by the new (doubled)
937 * nodes. If list of element identifiers is empty then nodes are doubled but
938 * they not assigned to elements
939 * \return TRUE if operation has been completed successfully, FALSE otherwise
940 * \sa DoubleNode(), DoubleNodeGroup(), DoubleNodeGroups()
942 boolean DoubleNodes( in long_array theNodes, in long_array theModifiedElems )
943 raises (SALOME::SALOME_Exception);
946 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
947 * This method provided for convenience works as DoubleNodes() described above.
948 * \param theNodeId - identifier of node to be doubled.
949 * \param theModifiedElems - identifiers of elements to be updated.
950 * \return TRUE if operation has been completed successfully, FALSE otherwise
951 * \sa DoubleNodes(), DoubleNodeGroup(), DoubleNodeGroups()
953 boolean DoubleNode( in long theNodeId, in long_array theModifiedElems )
954 raises (SALOME::SALOME_Exception);
957 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
958 * This method provided for convenience works as DoubleNodes() described above.
959 * \param theNodes - group of nodes to be doubled.
960 * \param theModifiedElems - group of elements to be updated.
961 * \return TRUE if operation has been completed successfully, FALSE otherwise
962 * \sa DoubleNode(), DoubleNodes(), DoubleNodeGroups(), DoubleNodeGroupNew()
964 boolean DoubleNodeGroup( in SMESH_GroupBase theNodes,
965 in SMESH_GroupBase theModifiedElems )
966 raises (SALOME::SALOME_Exception);
968 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements.
969 * Works as DoubleNodeGroup() described above, but returns a new group with
970 * newly created nodes.
971 * \param theNodes - group of nodes to be doubled.
972 * \param theModifiedElems - group of elements to be updated.
973 * \return a new group with newly created nodes
974 * \sa DoubleNodeGroup()
976 SMESH_Group DoubleNodeGroupNew( in SMESH_GroupBase theNodes,
977 in SMESH_GroupBase theModifiedElems )
978 raises (SALOME::SALOME_Exception);
981 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
982 * This method provided for convenience works as DoubleNodes() described above.
983 * \param theNodes - list of groups of nodes to be doubled
984 * \param theModifiedElems - list of groups of elements to be updated.
985 * \return TRUE if operation has been completed successfully, FALSE otherwise
986 * \sa DoubleNode(), DoubleNodeGroup(), DoubleNodes()
988 boolean DoubleNodeGroups( in ListOfGroups theNodes,
989 in ListOfGroups theModifiedElems )
990 raises (SALOME::SALOME_Exception);
992 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
993 * Works as DoubleNodeGroups() described above, but returns a new group with
994 * newly created nodes.
995 * \param theNodes - list of groups of nodes to be doubled
996 * \param theModifiedElems - list of groups of elements to be updated.
997 * \return a new group with newly created nodes
998 * \sa DoubleNodeGroups()
1000 SMESH_Group DoubleNodeGroupsNew( in ListOfGroups theNodes,
1001 in ListOfGroups theModifiedElems )
1002 raises (SALOME::SALOME_Exception);
1005 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
1006 * \param theElems - the list of elements (edges or faces) to be replicated
1007 * The nodes for duplication could be found from these elements
1008 * \param theNodesNot - list of nodes to NOT replicate
1009 * \param theAffectedElems - the list of elements (cells and edges) to which the
1010 * replicated nodes should be associated to.
1011 * \return TRUE if operation has been completed successfully, FALSE otherwise
1012 * \sa DoubleNodeGroup(), DoubleNodeGroups()
1014 boolean DoubleNodeElem( in long_array theElems,
1015 in long_array theNodesNot,
1016 in long_array theAffectedElems )
1017 raises (SALOME::SALOME_Exception);
1020 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
1021 * \param theElems - the list of elements (edges or faces) to be replicated
1022 * The nodes for duplication could be found from these elements
1023 * \param theNodesNot - list of nodes to NOT replicate
1024 * \param theShape - shape to detect affected elements (element which geometric center
1025 * located on or inside shape).
1026 * The replicated nodes should be associated to affected elements.
1027 * \return TRUE if operation has been completed successfully, FALSE otherwise
1028 * \sa DoubleNodeGroupInRegion(), DoubleNodeGroupsInRegion()
1030 boolean DoubleNodeElemInRegion( in long_array theElems,
1031 in long_array theNodesNot,
1032 in GEOM::GEOM_Object theShape )
1033 raises (SALOME::SALOME_Exception);
1036 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
1037 * This method provided for convenience works as DoubleNodes() described above.
1038 * \param theElems - group of of elements (edges or faces) to be replicated
1039 * \param theNodesNot - group of nodes not to replicated
1040 * \param theAffectedElems - group of elements to which the replicated nodes
1041 * should be associated to.
1042 * \return TRUE if operation has been completed successfully, FALSE otherwise
1043 * \sa DoubleNodes(), DoubleNodeGroups(), DoubleNodeElemGroupNew()
1045 boolean DoubleNodeElemGroup( in SMESH_GroupBase theElems,
1046 in SMESH_GroupBase theNodesNot,
1047 in SMESH_GroupBase theAffectedElems )
1048 raises (SALOME::SALOME_Exception);
1050 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements.
1051 * Works as DoubleNodeElemGroup() described above, but returns a new group with
1052 * newly created elements.
1053 * \param theElems - group of of elements (edges or faces) to be replicated
1054 * \param theNodesNot - group of nodes not to replicated
1055 * \param theAffectedElems - group of elements to which the replicated nodes
1056 * should be associated to.
1057 * \return a new group with newly created elements
1058 * \sa DoubleNodeElemGroup()
1060 SMESH_Group DoubleNodeElemGroupNew( in SMESH_GroupBase theElems,
1061 in SMESH_GroupBase theNodesNot,
1062 in SMESH_GroupBase theAffectedElems )
1063 raises (SALOME::SALOME_Exception);
1065 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements.
1066 * Works as DoubleNodeElemGroup() described above, but returns two new groups:
1067 * a group of newly created elements and a group of newly created nodes
1068 * \param theElems - group of of elements (edges or faces) to be replicated
1069 * \param theNodesNot - group of nodes not to replicated
1070 * \param theAffectedElems - group of elements to which the replicated nodes
1071 * should be associated to.
1072 * \param theElemGroupNeeded - to create group of new elements or not
1073 * \param theNodeGroupNeeded - to create group of new nodes or not
1074 * \return two new groups of newly created elements (1st) and nodes (2nd)
1075 * \sa DoubleNodeElemGroup()
1077 ListOfGroups DoubleNodeElemGroup2New( in SMESH_GroupBase theElems,
1078 in SMESH_GroupBase theNodesNot,
1079 in SMESH_GroupBase theAffectedElems,
1080 in boolean theElemGroupNeeded,
1081 in boolean theNodeGroupNeeded)
1082 raises (SALOME::SALOME_Exception);
1085 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
1086 * This method provided for convenience works as DoubleNodes() described above.
1087 * \param theElems - group of elements (edges or faces) to be replicated
1088 * \param theNodesNot - group of nodes not to replicated
1089 * \param theShape - shape to detect affected elements (element which geometric center
1090 * located on or inside shape).
1091 * The replicated nodes should be associated to affected elements.
1092 * \return TRUE if operation has been completed successfully, FALSE otherwise
1093 * \sa DoubleNodesInRegion(), DoubleNodeGroupsInRegion()
1095 boolean DoubleNodeElemGroupInRegion( in SMESH_GroupBase theElems,
1096 in SMESH_GroupBase theNodesNot,
1097 in GEOM::GEOM_Object theShape )
1098 raises (SALOME::SALOME_Exception);
1101 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
1102 * This method provided for convenience works as DoubleNodes() described above.
1103 * \param theElems - list of groups of elements (edges or faces) to be replicated
1104 * \param theNodesNot - list of groups of nodes not to replicated
1105 * \param theAffectedElems - group of elements to which the replicated nodes
1106 * should be associated to.
1107 * \return TRUE if operation has been completed successfully, FALSE otherwise
1108 * \sa DoubleNodeGroup(), DoubleNodes(), DoubleNodeElemGroupsNew()
1110 boolean DoubleNodeElemGroups( in ListOfGroups theElems,
1111 in ListOfGroups theNodesNot,
1112 in ListOfGroups theAffectedElems )
1113 raises (SALOME::SALOME_Exception);
1115 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements.
1116 * Works as DoubleNodeElemGroups() described above, but returns a new group with
1117 * newly created elements.
1118 * \param theElems - list of groups of elements (edges or faces) to be replicated
1119 * \param theNodesNot - list of groups of nodes not to replicated
1120 * \param theAffectedElems - group of elements to which the replicated nodes
1121 * should be associated to.
1122 * \return a new group with newly created elements
1123 * \sa DoubleNodeElemGroups()
1125 SMESH_Group DoubleNodeElemGroupsNew( in ListOfGroups theElems,
1126 in ListOfGroups theNodesNot,
1127 in ListOfGroups theAffectedElems )
1128 raises (SALOME::SALOME_Exception);
1130 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements.
1131 * Works as DoubleNodeElemGroups() described above, but returns two new groups:
1132 * a group of newly created elements and a group of newly created nodes.
1133 * \param theElems - list of groups of elements (edges or faces) to be replicated
1134 * \param theNodesNot - list of groups of nodes not to replicated
1135 * \param theAffectedElems - group of elements to which the replicated nodes
1136 * should be associated to.
1137 * \param theElemGroupNeeded - to create group of new elements or not
1138 * \param theNodeGroupNeeded - to create group of new nodes or not
1139 * \return two new groups of newly created elements (1st) and nodes (2nd)
1140 * \sa DoubleNodeElemGroups()
1142 ListOfGroups DoubleNodeElemGroups2New( in ListOfGroups theElems,
1143 in ListOfGroups theNodesNot,
1144 in ListOfGroups theAffectedElems,
1145 in boolean theElemGroupNeeded,
1146 in boolean theNodeGroupNeeded )
1147 raises (SALOME::SALOME_Exception);
1150 * \brief Creates a hole in a mesh by doubling the nodes of some particular elements
1151 * This method provided for convenience works as DoubleNodes() described above.
1152 * \param theElems - list of groups of elements (edges or faces) to be replicated
1153 * \param theNodesNot - list of groups of nodes not to replicated
1154 * \param theShape - shape to detect affected elements (element which geometric center
1155 * located on or inside shape).
1156 * The replicated nodes should be associated to affected elements.
1157 * \return TRUE if operation has been completed successfully, FALSE otherwise
1158 * \sa DoubleNodeGroupInRegion(), DoubleNodesInRegion()
1160 boolean DoubleNodeElemGroupsInRegion( in ListOfGroups theElems,
1161 in ListOfGroups theNodesNot,
1162 in GEOM::GEOM_Object theShape )
1163 raises (SALOME::SALOME_Exception);
1166 * \brief Identify the elements that will be affected by node duplication (actual duplication is not performed).
1167 * This method is the first step of DoubleNodeElemGroupsInRegion.
1168 * \param theElems - list of groups of elements (edges or faces) to be replicated
1169 * \param theNodesNot - list of groups of nodes not to replicated
1170 * \param theShape - shape to detect affected elements (element which geometric center
1171 * located on or inside shape).
1172 * The replicated nodes should be associated to affected elements.
1173 * \return groups of affected elements
1174 * \sa DoubleNodeElemGroupsInRegion()
1176 ListOfGroups AffectedElemGroupsInRegion( in ListOfGroups theElems,
1177 in ListOfGroups theNodesNot,
1178 in GEOM::GEOM_Object theShape )
1179 raises (SALOME::SALOME_Exception);
1182 * \brief Generates skin mesh (containing 2D cells) from 3D mesh
1183 * The created 2D mesh elements based on nodes of free faces of boundary volumes
1184 * \return TRUE if operation has been completed successfully, FALSE otherwise
1186 boolean Make2DMeshFrom3D() raises (SALOME::SALOME_Exception);
1189 * \brief Creates missing boundary elements
1190 * \param elements - elements whose boundary is to be checked
1191 * \param dimension - defines type of boundary elements to create
1192 * BND_1DFROM3D creates mesh edges on all borders of free facets of 3D elements.
1193 * \param groupName - a name of group to store created boundary elements in,
1194 * "" means not to create the group
1195 * \param meshName - a name of new mesh to store created boundary elements in,
1196 * "" means not to create the new mesh
1197 * \param toCopyElements - if true, the checked elements will be copied into the new mesh
1198 * else only boundary elements will be copied into the new mesh
1199 * \param toCopyExistingBondary - if true, not only new but also pre-existing
1200 * boundary elements will be copied into the new mesh
1201 * \param group - returns the create group, if any
1202 * \retval SMESH::SMESH_Mesh - the mesh where elements were added to
1204 SMESH_Mesh MakeBoundaryMesh(in SMESH_IDSource elements,
1205 in Bnd_Dimension dimension,
1206 in string groupName,
1208 in boolean toCopyElements,
1209 in boolean toCopyExistingBondary,
1210 out SMESH_Group group) raises (SALOME::SALOME_Exception);
1212 * \brief Creates missing boundary elements around either the whole mesh or
1213 * groups of 2D elements
1214 * \param dimension - defines type of boundary elements to create
1215 * \param groupName - a name of group to store all boundary elements in,
1216 * "" means not to create the group
1217 * \param meshName - a name of a new mesh, which is a copy of the initial
1218 * mesh + created boundary elements; "" means not to create the new mesh
1219 * \param toCopyAll - if true, the whole initial mesh will be copied into
1220 * the new mesh else only boundary elements will be copied into the new mesh
1221 * \param groups - optional groups of 2D elements to make boundary around
1222 * \param mesh - returns the mesh where elements were added to
1223 * \param group - returns the created group, if any
1224 * \retval long - number of added boundary elements
1226 long MakeBoundaryElements(in Bnd_Dimension dimension,
1227 in string groupName,
1229 in boolean toCopyAll,
1230 in ListOfIDSources groups,
1231 out SMESH_Mesh mesh,
1232 out SMESH_Group group) raises (SALOME::SALOME_Exception);
1235 * \brief Double nodes on shared faces between groups of volumes and create flat elements on demand.
1236 * Flat elements are mainly used by some types of mechanic calculations.
1238 * The list of groups must describe a partition of the mesh volumes.
1239 * The nodes of the internal faces at the boundaries of the groups are doubled.
1240 * In option, the internal faces are replaced by flat elements.
1241 * Triangles are transformed in prisms, and quadrangles in hexahedrons.
1242 * \param theDomains - list of groups of volumes
1243 * \param createJointElems - if TRUE, create the elements
1244 * \param onAllBoundaries - if TRUE, the nodes and elements are also created on
1245 * the boundary between \a theDomains and the rest mesh
1246 * \return TRUE if operation has been completed successfully, FALSE otherwise
1248 boolean DoubleNodesOnGroupBoundaries( in ListOfGroups theDomains,
1249 in boolean createJointElems,
1250 in boolean onAllBoundaries)
1251 raises (SALOME::SALOME_Exception);
1254 * \brief Double nodes on some external faces and create flat elements.
1255 * Flat elements are mainly used by some types of mechanic calculations.
1257 * Each group of the list must be constituted of faces.
1258 * Triangles are transformed in prisms, and quadrangles in hexahedrons.
1259 * \param theGroupsOfFaces - list of groups of faces
1260 * \return TRUE if operation has been completed successfully, FALSE otherwise
1262 boolean CreateFlatElementsOnFacesGroups( in ListOfGroups theGroupsOfFaces )
1263 raises (SALOME::SALOME_Exception);
1266 * \brief identify all the elements around a geom shape, get the faces delimiting the hole
1267 * Build groups of volume to remove, groups of faces to replace on the skin of the object,
1268 * groups of faces to remove insidethe object, (idem edges).
1269 * Build ordered list of nodes at the border of each group of faces to replace (to be used to build a geom subshape)
1271 void CreateHoleSkin(in double radius,
1272 in GEOM::GEOM_Object theShape,
1273 in string groupName,
1274 in double_array theNodesCoords,
1275 out array_of_long_array GroupsOfNodes)
1276 raises (SALOME::SALOME_Exception);
1280 * \brief Create a polyline consisting of 1D mesh elements each lying on a 2D element of
1281 * the initial triangle mesh. Positions of new nodes are found by cutting the mesh by
1282 * the plane passing through pairs of points specified by each PolySegment structure.
1283 * If there are several paths connecting a pair of points, the shortest path is
1284 * selected by the module. Position of the cutting plane is defined by the two
1285 * points and an optional vector lying on the plane specified by a PolySegment.
1286 * By default the vector is defined by Mesh module as following. A middle point
1287 * of the two given points is computed. The middle point is projected to the mesh.
1288 * The vector goes from the middle point to the projection point. In case of planar
1289 * mesh, the vector is normal to the mesh.
1290 * \param [inout] segments - PolySegment's defining positions of cutting planes.
1291 * Return the used vector which goes from the middle point to its projection.
1292 * \param [in] groupName - optional name of a group where created mesh segments will
1295 void MakePolyLine(inout ListOfPolySegments segments,
1296 in string groupName)
1297 raises (SALOME::SALOME_Exception);