1 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // File : SMESH_Mesh.idl
23 // Author : Paul RASCLE, EDF
26 #ifndef _SMESH_MESH_IDL_
27 #define _SMESH_MESH_IDL_
29 #include "SALOME_Exception.idl"
30 #include "SALOME_GenericObj.idl"
31 #include "GEOM_Gen.idl"
36 interface SMESH_Hypothesis;
37 typedef sequence<SMESH_Hypothesis> ListOfHypothesis;
38 interface SMESH_GroupBase;
39 typedef sequence<SMESH_GroupBase> ListOfGroups;
41 typedef sequence<double> double_array ;
42 typedef sequence<long> long_array ;
43 typedef sequence<string> string_array ;
44 typedef sequence<long_array> array_of_long_array ;
62 CHANGE_POLYHEDRON_NODES,
81 struct PointStruct { double x;
84 struct DirStruct { PointStruct PS ; } ; // analog to Occ Direction
86 struct AxisStruct { double x;
95 * Enumeration for element type, like in SMDS
107 * ElementOrder points out entities of what order are requested
110 ORDER_ANY, /*! entities of any order */
111 ORDER_LINEAR, /*! entities of 1st order */
112 ORDER_QUADRATIC /*! entities of 2nd order */
116 * Enumeration for hypothesis status (used by AddHypothesis() and RemoveHypothesis() methods)
118 enum Hypothesis_Status // in the order of severity
121 HYP_MISSING, // algo misses a hypothesis
122 HYP_CONCURENT, // several applicable hypotheses
123 HYP_BAD_PARAMETER,// hypothesis has a bad parameter value
124 HYP_UNKNOWN_FATAL,// --- all statuses below should be considered as fatal
125 // for Add/RemoveHypothesis operations
126 HYP_INCOMPATIBLE, // hypothesis does not fit algo
127 HYP_NOTCONFORM, // not conform mesh is produced appling a hypothesis
128 HYP_ALREADY_EXIST,// such hypothesis already exist
129 HYP_BAD_DIM, // bad dimension
130 HYP_BAD_SUBSHAPE // shape is neither the main one, nor its subshape, nor a group
134 * Enumeration for DriverMED read status (used by ImportMEDFile() method)
136 enum DriverMED_ReadStatus // in the order of severity
139 DRS_EMPTY, // a MED file contains no mesh with the given name
140 DRS_WARN_RENUMBER, // a MED file has overlapped ranges of element numbers,
141 // so the numbers from the file are ignored
142 DRS_WARN_SKIP_ELEM, // some elements were skipped due to incorrect file data
143 DRS_FAIL // general failure (exception etc.)
147 * Enumeration for DriverMED (used by Perform() method)
149 enum MED_VERSION // in the order of severity
155 typedef sequence<log_block> log_array;
159 * Auxilary flags for advanced extrusion.
160 * BOUNDARY: create or not boundary for result of extrusion
161 * SEW: try to use existing nodes or create new nodes in any case
163 const long EXTRUSION_FLAG_BOUNDARY = 1;
164 const long EXTRUSION_FLAG_SEW = 2;
166 interface SMESH_IDSource
169 * Returns a sequence of all element IDs
174 interface SMESH_Group;
175 interface SMESH_GroupOnGeom;
176 interface SMESH_subMesh;
177 interface SMESH_MeshEditor;
178 interface SMESH_Mesh : SALOME::GenericObj, SMESH_IDSource
181 // * Associate a Shape to a Mesh created with NewEmpty
183 //boolean SetMesh(in GEOM::GEOM_Object anObject)
184 // raises (SALOME::SALOME_Exception);
187 * Get the subMesh object associated to a subShape. The subMesh object
188 * gives access to nodes and elements IDs.
189 * SubMesh will be used instead of SubShape in a next idl version to
190 * adress a specific subMesh...
192 SMESH_subMesh GetSubMesh(in GEOM::GEOM_Object aSubObject, in string name)
193 raises (SALOME::SALOME_Exception);
196 // * Create a subMesh without reference to a subShape
198 //SMESH_subMesh NewEmpty()
199 // raises (SALOME::SALOME_Exception);
202 * Get geom shape to mesh. A result may be nil
204 GEOM::GEOM_Object GetShapeToMesh()
205 raises (SALOME::SALOME_Exception);
210 void RemoveSubMesh(in SMESH_subMesh aSubMesh)
211 raises (SALOME::SALOME_Exception);
216 SMESH_Group CreateGroup( in ElementType elem_type,
218 raises (SALOME::SALOME_Exception);
221 * Create a group from geometry group
223 SMESH_GroupOnGeom CreateGroupFromGEOM( in ElementType elem_type,
225 in GEOM::GEOM_Object theGeomObject )
226 raises (SALOME::SALOME_Exception);
231 void RemoveGroup(in SMESH_GroupBase aGroup)
232 raises (SALOME::SALOME_Exception);
235 * Remove group with its contents
237 void RemoveGroupWithContents( in SMESH_GroupBase aGroup )
238 raises (SALOME::SALOME_Exception);
241 * Get the list of groups existing in the mesh
243 ListOfGroups GetGroups()
244 raises (SALOME::SALOME_Exception);
247 * Union of two groups
248 * New group is created. All mesh elements that are
249 * present in initial groups are added to the new one
251 SMESH_Group UnionGroups (in SMESH_GroupBase aGroup1,
252 in SMESH_GroupBase aGroup2,
254 raises (SALOME::SALOME_Exception);
257 * Intersection of two groups
258 * New group is created. All mesh elements that are
259 * present in both initial groups are added to the new one.
261 SMESH_Group IntersectGroups (in SMESH_GroupBase aGroup1,
262 in SMESH_GroupBase aGroup2,
264 raises (SALOME::SALOME_Exception);
268 * New group is created. All mesh elements that are present in
269 * main group but do not present in tool group are added to the new one
271 SMESH_Group CutGroups (in SMESH_GroupBase aMainGroup,
272 in SMESH_GroupBase aToolGroup,
274 raises (SALOME::SALOME_Exception);
277 * Add hypothesis to the mesh, under a particular subShape
278 * (or the main shape itself)
279 * The Add method is only used to prepare the build of the mesh and store
280 * the algorithms and associated parameters.
281 * Actual job of mesh the shape is done by MESH_Gen.
283 * - aSubShape : subShape obtained by a shape explode in GEOM
285 * - anHyp : hypothesis object
287 * - OK if the hypothesis is compatible with the subShape
288 * (and all previous hypothesis on the subShape)
289 * - NOK if the hypothesis is not compatible with the subShape
290 * (or one previous hypothesis on the subShape)
291 * raises exception if hypothesis has not been created
293 Hypothesis_Status AddHypothesis(in GEOM::GEOM_Object aSubObject,
294 in SMESH_Hypothesis anHyp)
295 raises (SALOME::SALOME_Exception);
296 // boolean AddHypothesis(in SMESH_subMesh aSubMesh, in SMESH_Hypothesis anHyp)
297 // raises (SALOME::SALOME_Exception);
300 * Remove an hypothesis previouly added with AddHypothesis.
302 Hypothesis_Status RemoveHypothesis(in GEOM::GEOM_Object aSubObject,
303 in SMESH_Hypothesis anHyp)
304 raises (SALOME::SALOME_Exception);
305 // boolean RemoveHypothesis(in SMESH_subMesh aSubMesh,
306 // in SMESH_Hypothesis anHyp)
307 // raises (SALOME::SALOME_Exception);
310 * Get the list of hypothesis added on a subShape
312 ListOfHypothesis GetHypothesisList(in GEOM::GEOM_Object aSubObject)
313 raises (SALOME::SALOME_Exception);
314 // ListOfHypothesis GetHypothesisList(in SMESH_subMesh aSubMesh)
315 // raises (SALOME::SALOME_Exception);
318 * Get the log of nodes and elements added or removed since previous
321 * - clearAfterGet : log is emptied after Get (safe if concurrents access)
323 // string_array GetLog(in boolean clearAfterGet)
324 // raises (SALOME::SALOME_Exception);
325 log_array GetLog(in boolean clearAfterGet)
326 raises (SALOME::SALOME_Exception);
329 * Clear the log of nodes and elements added or removed since previous
330 * clear. Must be used immediately after GetLog if clearAfterGet is false.
333 raises (SALOME::SALOME_Exception);
336 * Get the internal Id
346 * Obtain instance of SMESH_MeshEditor
348 SMESH_MeshEditor GetMeshEditor()
349 raises (SALOME::SALOME_Exception);
351 /*! Check group names for duplications.
352 * Consider maximum group name length stored in MED file.
354 boolean HasDuplicatedGroupNamesMED();
357 * Export Mesh to different MED Formats
359 * - auto_groups : boolean parameter for creating/not creating
360 * the groups Group_On_All_Nodes, Group_On_All_Faces, ... ;
361 * the typical use is auto_groups=false.
362 * - theVersion : define the version of format of MED file, that will be created
364 void ExportToMED( in string file, in boolean auto_groups, in MED_VERSION theVersion )
365 raises (SALOME::SALOME_Exception);
368 * Export Mesh to MED_V2_1 MED format
369 * Works, just the same as ExportToMED, with MED_VERSION parameter equal to MED_V2_1.
370 * The method is kept in order to support old functionality
372 void ExportMED( in string file, in boolean auto_groups )
373 raises (SALOME::SALOME_Exception);
376 * Export Mesh to DAT, UNV and STL Formats
377 * (UNV supported version is I-DEAS 10)
379 void ExportDAT( in string file )
380 raises (SALOME::SALOME_Exception);
381 void ExportUNV( in string file )
382 raises (SALOME::SALOME_Exception);
383 void ExportSTL( in string file, in boolean isascii )
384 raises (SALOME::SALOME_Exception);
389 SALOME_MED::MESH GetMEDMesh()
390 raises (SALOME::SALOME_Exception);
393 * Get informations about mesh contents
396 raises (SALOME::SALOME_Exception);
399 raises (SALOME::SALOME_Exception);
402 raises (SALOME::SALOME_Exception);
404 long NbEdgesOfOrder(in ElementOrder order)
405 raises (SALOME::SALOME_Exception);
408 raises (SALOME::SALOME_Exception);
410 long NbFacesOfOrder(in ElementOrder order)
411 raises (SALOME::SALOME_Exception);
414 raises (SALOME::SALOME_Exception);
416 long NbTrianglesOfOrder(in ElementOrder order)
417 raises (SALOME::SALOME_Exception);
420 raises (SALOME::SALOME_Exception);
422 long NbQuadranglesOfOrder(in ElementOrder order)
423 raises (SALOME::SALOME_Exception);
426 raises (SALOME::SALOME_Exception);
429 raises (SALOME::SALOME_Exception);
431 long NbVolumesOfOrder(in ElementOrder order)
432 raises (SALOME::SALOME_Exception);
435 raises (SALOME::SALOME_Exception);
437 long NbTetrasOfOrder(in ElementOrder order)
438 raises (SALOME::SALOME_Exception);
441 raises (SALOME::SALOME_Exception);
443 long NbHexasOfOrder(in ElementOrder order)
444 raises (SALOME::SALOME_Exception);
447 raises (SALOME::SALOME_Exception);
449 long NbPyramidsOfOrder(in ElementOrder order)
450 raises (SALOME::SALOME_Exception);
453 raises (SALOME::SALOME_Exception);
455 long NbPrismsOfOrder(in ElementOrder order)
456 raises (SALOME::SALOME_Exception);
459 raises (SALOME::SALOME_Exception);
462 raises (SALOME::SALOME_Exception);
464 long_array GetElementsId()
465 raises (SALOME::SALOME_Exception);
467 long_array GetElementsByType( in ElementType theType )
468 raises (SALOME::SALOME_Exception);
470 long_array GetNodesId()
471 raises (SALOME::SALOME_Exception);
474 * Returns type of mesh element
476 ElementType GetElementType( in long id, in boolean iselem )
477 raises (SALOME::SALOME_Exception);
479 long_array GetSubMeshElementsId(in long ShapeID)
480 raises (SALOME::SALOME_Exception);
482 long_array GetSubMeshNodesId(in long ShapeID, in boolean all )
483 raises (SALOME::SALOME_Exception);
485 ElementType GetSubMeshElementType(in long ShapeID)
486 raises (SALOME::SALOME_Exception);
489 * Get mesh description
499 * Get XYZ coordinates of node as list of double
500 * If there is not node for given ID - returns empty list
502 double_array GetNodeXYZ(in long id);
505 * For given node returns list of IDs of inverse elements
506 * If there is not node for given ID - returns empty list
508 long_array GetNodeInverseElements(in long id);
511 * If given element is node returns IDs of shape from position
512 * If there is not node for given ID - returns -1
514 long GetShapeID(in long id);
517 * For given element returns ID of result shape after
518 * ::FindShape() from SMESH_MeshEditor
519 * If there is not element for given ID - returns -1
521 long GetShapeIDForElem(in long id);
524 * Returns number of nodes for given element
525 * If there is not element for given ID - returns -1
527 long GetElemNbNodes(in long id);
530 * Returns ID of node by given index for given element
531 * If there is not element for given ID - returns -1
532 * If there is not node for given index - returns -2
534 long GetElemNode(in long id, in long index);
537 * Returns true if given node is medium node
538 * in given quadratic element
540 boolean IsMediumNode(in long ide, in long idn);
543 * Returns true if given node is medium node
544 * in one of quadratic elements
546 boolean IsMediumNodeOfAnyElem(in long idn, in ElementType elem_type);
549 * Returns number of edges for given element
551 long ElemNbEdges(in long id);
554 * Returns number of faces for given element
556 long ElemNbFaces(in long id);
559 * Returns true if given element is polygon
561 boolean IsPoly(in long id);
564 * Returns true if given element is quadratic
566 boolean IsQuadratic(in long id);
569 * Returns XYZ coordinates of bary center for given element
571 * If there is not element for given ID - returns empty list
573 double_array BaryCenter(in long id);
577 interface SMESH_subMesh : SALOME::GenericObj, SMESH_IDSource
582 long GetNumberOfElements()
583 raises (SALOME::SALOME_Exception);
588 long GetNumberOfNodes( in boolean all )
589 raises (SALOME::SALOME_Exception);
594 long_array GetElementsId()
595 raises (SALOME::SALOME_Exception);
600 long_array GetElementsByType( in ElementType theType )
601 raises (SALOME::SALOME_Exception);
604 * Return type of submesh element
606 ElementType GetElementType( in long id, in boolean iselem )
607 raises (SALOME::SALOME_Exception);
612 long_array GetNodesId()
613 raises (SALOME::SALOME_Exception);
616 * Get geom shape the submesh is dedicated to
618 GEOM::GEOM_Object GetSubShape()
619 raises (SALOME::SALOME_Exception);
622 * Get SMESH_Mesh which stores nodes coordinates & elements definition
624 SMESH_Mesh GetFather()
625 raises (SALOME::SALOME_Exception);
628 * Get the internal Id
635 SALOME_MED::FAMILY GetFamily()
636 raises (SALOME::SALOME_Exception);
640 * This interface makes modifications on the Mesh - removing elements and nodes etc.
642 interface NumericalFunctor;
643 interface SMESH_MeshEditor
645 boolean RemoveElements(in long_array IDsOfElements);
647 boolean RemoveNodes(in long_array IDsOfNodes);
649 long AddNode(in double x, in double y, in double z);
652 * Create edge both similar and quadratic (this is determed
653 * by number of given nodes).
654 * \param IdsOfNodes List of node IDs for creation of element.
655 * Needed order of nodes in this list corresponds to description
656 * of MED. This description is located by the following link:
657 * http://www.salome-platform.org/salome2/web_med_internet/logiciels/medV2.2.2_doc_html/html/modele_de_donnees.html#3.
659 long AddEdge(in long_array IDsOfNodes);
662 * Create face both similar and quadratic (this is determed
663 * by number of given nodes).
664 * \param IdsOfNodes List of node IDs for creation of element.
665 * Needed order of nodes in this list corresponds to description
666 * of MED. This description is located by the following link:
667 * http://www.salome-platform.org/salome2/web_med_internet/logiciels/medV2.2.2_doc_html/html/modele_de_donnees.html#3.
669 long AddFace(in long_array IDsOfNodes);
671 long AddPolygonalFace(in long_array IdsOfNodes);
674 * Create volume both similar and quadratic (this is determed
675 * by number of given nodes).
676 * \param IdsOfNodes List of node IDs for creation of element.
677 * Needed order of nodes in this list corresponds to description
678 * of MED. This description is located by the following link:
679 * http://www.salome-platform.org/salome2/web_med_internet/logiciels/medV2.2.2_doc_html/html/modele_de_donnees.html#3.
681 long AddVolume(in long_array IDsOfNodes);
684 * Create volume of many faces, giving nodes for each face.
685 * \param IdsOfNodes List of node IDs for volume creation face by face.
686 * \param Quantities List of integer values, Quantities[i]
687 * gives quantity of nodes in face number i.
689 long AddPolyhedralVolume (in long_array IdsOfNodes,
690 in long_array Quantities);
693 * Create volume of many faces, giving IDs of existing faces.
694 * \param IdsOfFaces List of face IDs for volume creation.
695 * \note The created volume will refer only to nodes
696 * of the given faces, not to the faces itself.
698 long AddPolyhedralVolumeByFaces (in long_array IdsOfFaces);
700 boolean MoveNode(in long NodeID, in double x, in double y, in double z);
702 boolean InverseDiag(in long NodeID1, in long NodeID2);
704 boolean DeleteDiag(in long NodeID1, in long NodeID2);
706 boolean Reorient(in long_array IDsOfElements);
708 boolean ReorientObject(in SMESH_IDSource theObject);
711 * \brief Fuse neighbour triangles into quadrangles.
712 * \param theElems The triangles to be fused.
713 * \param theCriterion Is used to choose a neighbour to fuse with.
714 * \param theMaxAngle Is a max angle between element normals at which fusion
715 * is still performed; theMaxAngle is mesured in radians.
716 * \return TRUE in case of success, FALSE otherwise.
718 boolean TriToQuad (in long_array IDsOfElements,
719 in NumericalFunctor Criterion,
723 * \brief Fuse neighbour triangles into quadrangles.
725 * Behaves like the above method, taking list of elements from \a theObject
727 boolean TriToQuadObject (in SMESH_IDSource theObject,
728 in NumericalFunctor Criterion,
732 * \brief Split quadrangles into triangles.
733 * \param theElems The faces to be splitted.
734 * \param theCriterion Is used to choose a diagonal for splitting.
735 * \return TRUE in case of success, FALSE otherwise.
737 boolean QuadToTri (in long_array IDsOfElements,
738 in NumericalFunctor Criterion);
741 * \brief Split quadrangles into triangles.
743 * Behaves like the above method, taking list of elements from \a theObject
745 boolean QuadToTriObject (in SMESH_IDSource theObject,
746 in NumericalFunctor Criterion);
749 * \brief Split quadrangles into triangles.
750 * \param theElems The faces to be splitted.
751 * \param the13Diag Is used to choose a diagonal for splitting.
752 * \return TRUE in case of success, FALSE otherwise.
754 boolean SplitQuad (in long_array IDsOfElements,
758 * \brief Split quadrangles into triangles.
760 * Behaves like the above method, taking list of elements from \a theObject
762 boolean SplitQuadObject (in SMESH_IDSource theObject,
766 * Find better splitting of the given quadrangle.
767 * \param IDOfQuad ID of the quadrangle to be splitted.
768 * \param Criterion A criterion to choose a diagonal for splitting.
769 * \return 1 if 1-3 diagonal is better, 2 if 2-4
770 * diagonal is better, 0 if error occurs.
772 long BestSplit (in long IDOfQuad,
773 in NumericalFunctor Criterion);
775 enum Smooth_Method { LAPLACIAN_SMOOTH, CENTROIDAL_SMOOTH };
777 boolean Smooth(in long_array IDsOfElements,
778 in long_array IDsOfFixedNodes,
779 in long MaxNbOfIterations,
780 in double MaxAspectRatio,
781 in Smooth_Method Method);
783 boolean SmoothObject(in SMESH_IDSource theObject,
784 in long_array IDsOfFixedNodes,
785 in long MaxNbOfIterations,
786 in double MaxAspectRatio,
787 in Smooth_Method Method);
789 boolean SmoothParametric(in long_array IDsOfElements,
790 in long_array IDsOfFixedNodes,
791 in long MaxNbOfIterations,
792 in double MaxAspectRatio,
793 in Smooth_Method Method);
795 boolean SmoothParametricObject(in SMESH_IDSource theObject,
796 in long_array IDsOfFixedNodes,
797 in long MaxNbOfIterations,
798 in double MaxAspectRatio,
799 in Smooth_Method Method);
801 void ConvertToQuadratic(in boolean theForce3d);
803 boolean ConvertFromQuadratic();
805 void RenumberNodes();
807 void RenumberElements();
809 void RotationSweep(in long_array IDsOfElements,
811 in double AngleInRadians,
813 in double Tolerance);
815 void RotationSweepObject(in SMESH_IDSource theObject,
817 in double AngleInRadians,
819 in double Tolerance);
821 void ExtrusionSweep(in long_array IDsOfElements,
822 in DirStruct StepVector,
826 * Generate new elements by extrusion of theElements
827 * by StepVector by NbOfSteps
828 * param ExtrFlags set flags for performing extrusion
829 * param SewTolerance - uses for comparing locations of nodes if flag
830 * EXTRUSION_FLAG_SEW is set
832 void AdvancedExtrusion(in long_array IDsOfElements,
833 in DirStruct StepVector,
836 in double SewTolerance);
838 void ExtrusionSweepObject(in SMESH_IDSource theObject,
839 in DirStruct StepVector,
842 void ExtrusionSweepObject1D(in SMESH_IDSource theObject,
843 in DirStruct StepVector,
846 void ExtrusionSweepObject2D(in SMESH_IDSource theObject,
847 in DirStruct StepVector,
850 enum Extrusion_Error {
855 EXTR_BAD_STARTING_NODE,
856 EXTR_BAD_ANGLES_NUMBER,
857 EXTR_CANT_GET_TANGENT
860 Extrusion_Error ExtrusionAlongPath(in long_array IDsOfElements,
861 in SMESH_Mesh PathMesh,
862 in GEOM::GEOM_Object PathShape,
864 in boolean HasAngles,
865 in double_array Angles,
866 in boolean HasRefPoint,
867 in PointStruct RefPoint);
869 Extrusion_Error ExtrusionAlongPathObject(in SMESH_IDSource theObject,
870 in SMESH_Mesh PathMesh,
871 in GEOM::GEOM_Object PathShape,
873 in boolean HasAngles,
874 in double_array Angles,
875 in boolean HasRefPoint,
876 in PointStruct RefPoint);
878 enum MirrorType { POINT, AXIS, PLANE };
880 void Mirror (in long_array IDsOfElements,
881 in AxisStruct Mirror,
882 in MirrorType theMirrorType,
885 void MirrorObject (in SMESH_IDSource theObject,
886 in AxisStruct Mirror,
887 in MirrorType theMirrorType,
890 void Translate (in long_array IDsOfElements,
894 void TranslateObject (in SMESH_IDSource theObject,
898 void Rotate (in long_array IDsOfElements,
900 in double AngleInRadians,
903 void RotateObject (in SMESH_IDSource theObject,
905 in double AngleInRadians,
908 void FindCoincidentNodes (in double Tolerance,
909 out array_of_long_array GroupsOfNodes);
911 void MergeNodes (in array_of_long_array GroupsOfNodes);
913 void MergeEqualElements();
917 SEW_BORDER1_NOT_FOUND,
918 SEW_BORDER2_NOT_FOUND,
919 SEW_BOTH_BORDERS_NOT_FOUND,
921 SEW_VOLUMES_TO_SPLIT,
922 // for SewSideElements() only:
923 SEW_DIFF_NB_OF_ELEMENTS,
924 SEW_TOPO_DIFF_SETS_OF_ELEMENTS,
929 Sew_Error SewFreeBorders (in long FirstNodeID1,
930 in long SecondNodeID1,
932 in long FirstNodeID2,
933 in long SecondNodeID2,
935 in boolean CreatePolygons,
936 in boolean CreatePolyedrs);
938 Sew_Error SewConformFreeBorders (in long FirstNodeID1,
939 in long SecondNodeID1,
941 in long FirstNodeID2,
942 in long SecondNodeID2);
944 Sew_Error SewBorderToSide (in long FirstNodeIDOnFreeBorder,
945 in long SecondNodeIDOnFreeBorder,
946 in long LastNodeIDOnFreeBorder,
947 in long FirstNodeIDOnSide,
948 in long LastNodeIDOnSide,
949 in boolean CreatePolygons,
950 in boolean CreatePolyedrs);
952 Sew_Error SewSideElements (in long_array IDsOfSide1Elements,
953 in long_array IDsOfSide2Elements,
954 in long NodeID1OfSide1ToMerge,
955 in long NodeID1OfSide2ToMerge,
956 in long NodeID2OfSide1ToMerge,
957 in long NodeID2OfSide2ToMerge);
960 * Set new nodes for given element.
961 * If number of nodes is not corresponded to type of
962 * element - returns false
964 boolean ChangeElemNodes(in long ide, in long_array newIDs);
967 * If during last operation of MeshEditor some nodes were
968 * created this method returns list of it's IDs, if new nodes
969 * not creared - returns empty list
971 long_array GetLastCreatedNodes();
974 * If during last operation of MeshEditor some elements were
975 * created this method returns list of it's IDs, if new elements
976 * not creared - returns empty list
978 long_array GetLastCreatedElems();