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
131 HYP_BAD_GEOMETRY // geometry mismatches algorithm's expectation
135 * Enumeration for DriverMED read status (used by ImportMEDFile() method)
137 enum DriverMED_ReadStatus // in the order of severity
140 DRS_EMPTY, // a MED file contains no mesh with the given name
141 DRS_WARN_RENUMBER, // a MED file has overlapped ranges of element numbers,
142 // so the numbers from the file are ignored
143 DRS_WARN_SKIP_ELEM, // some elements were skipped due to incorrect file data
144 DRS_FAIL // general failure (exception etc.)
148 * Enumeration for DriverMED (used by Perform() method)
150 enum MED_VERSION // in the order of severity
156 typedef sequence<log_block> log_array;
160 * Auxilary flags for advanced extrusion.
161 * BOUNDARY: create or not boundary for result of extrusion
162 * SEW: try to use existing nodes or create new nodes in any case
164 const long EXTRUSION_FLAG_BOUNDARY = 1;
165 const long EXTRUSION_FLAG_SEW = 2;
167 interface SMESH_IDSource
170 * Returns a sequence of all element IDs
175 interface SMESH_Group;
176 interface SMESH_GroupOnGeom;
177 interface SMESH_subMesh;
178 interface SMESH_MeshEditor;
179 interface SMESH_Mesh : SALOME::GenericObj, SMESH_IDSource
182 // * Associate a Shape to a Mesh created with NewEmpty
184 //boolean SetMesh(in GEOM::GEOM_Object anObject)
185 // raises (SALOME::SALOME_Exception);
188 * Get the subMesh object associated to a subShape. The subMesh object
189 * gives access to nodes and elements IDs.
190 * SubMesh will be used instead of SubShape in a next idl version to
191 * adress a specific subMesh...
193 SMESH_subMesh GetSubMesh(in GEOM::GEOM_Object aSubObject, in string name)
194 raises (SALOME::SALOME_Exception);
197 // * Create a subMesh without reference to a subShape
199 //SMESH_subMesh NewEmpty()
200 // raises (SALOME::SALOME_Exception);
203 * Get geom shape to mesh. A result may be nil
205 GEOM::GEOM_Object GetShapeToMesh()
206 raises (SALOME::SALOME_Exception);
211 void RemoveSubMesh(in SMESH_subMesh aSubMesh)
212 raises (SALOME::SALOME_Exception);
217 SMESH_Group CreateGroup( in ElementType elem_type,
219 raises (SALOME::SALOME_Exception);
222 * Create a group from geometry group
224 SMESH_GroupOnGeom CreateGroupFromGEOM( in ElementType elem_type,
226 in GEOM::GEOM_Object theGeomObject )
227 raises (SALOME::SALOME_Exception);
232 void RemoveGroup(in SMESH_GroupBase aGroup)
233 raises (SALOME::SALOME_Exception);
236 * Remove group with its contents
238 void RemoveGroupWithContents( in SMESH_GroupBase aGroup )
239 raises (SALOME::SALOME_Exception);
242 * Get the list of groups existing in the mesh
244 ListOfGroups GetGroups()
245 raises (SALOME::SALOME_Exception);
248 * Union of two groups
249 * New group is created. All mesh elements that are
250 * present in initial groups are added to the new one
252 SMESH_Group UnionGroups (in SMESH_GroupBase aGroup1,
253 in SMESH_GroupBase aGroup2,
255 raises (SALOME::SALOME_Exception);
258 * Intersection of two groups
259 * New group is created. All mesh elements that are
260 * present in both initial groups are added to the new one.
262 SMESH_Group IntersectGroups (in SMESH_GroupBase aGroup1,
263 in SMESH_GroupBase aGroup2,
265 raises (SALOME::SALOME_Exception);
269 * New group is created. All mesh elements that are present in
270 * main group but do not present in tool group are added to the new one
272 SMESH_Group CutGroups (in SMESH_GroupBase aMainGroup,
273 in SMESH_GroupBase aToolGroup,
275 raises (SALOME::SALOME_Exception);
278 * Add hypothesis to the mesh, under a particular subShape
279 * (or the main shape itself)
280 * The Add method is only used to prepare the build of the mesh and store
281 * the algorithms and associated parameters.
282 * Actual job of mesh the shape is done by MESH_Gen.
284 * - aSubShape : subShape obtained by a shape explode in GEOM
286 * - anHyp : hypothesis object
288 * - OK if the hypothesis is compatible with the subShape
289 * (and all previous hypothesis on the subShape)
290 * - NOK if the hypothesis is not compatible with the subShape
291 * (or one previous hypothesis on the subShape)
292 * raises exception if hypothesis has not been created
294 Hypothesis_Status AddHypothesis(in GEOM::GEOM_Object aSubObject,
295 in SMESH_Hypothesis anHyp)
296 raises (SALOME::SALOME_Exception);
297 // boolean AddHypothesis(in SMESH_subMesh aSubMesh, in SMESH_Hypothesis anHyp)
298 // raises (SALOME::SALOME_Exception);
301 * Remove an hypothesis previouly added with AddHypothesis.
303 Hypothesis_Status RemoveHypothesis(in GEOM::GEOM_Object aSubObject,
304 in SMESH_Hypothesis anHyp)
305 raises (SALOME::SALOME_Exception);
306 // boolean RemoveHypothesis(in SMESH_subMesh aSubMesh,
307 // in SMESH_Hypothesis anHyp)
308 // raises (SALOME::SALOME_Exception);
311 * Get the list of hypothesis added on a subShape
313 ListOfHypothesis GetHypothesisList(in GEOM::GEOM_Object aSubObject)
314 raises (SALOME::SALOME_Exception);
315 // ListOfHypothesis GetHypothesisList(in SMESH_subMesh aSubMesh)
316 // raises (SALOME::SALOME_Exception);
319 * Get the log of nodes and elements added or removed since previous
322 * - clearAfterGet : log is emptied after Get (safe if concurrents access)
324 // string_array GetLog(in boolean clearAfterGet)
325 // raises (SALOME::SALOME_Exception);
326 log_array GetLog(in boolean clearAfterGet)
327 raises (SALOME::SALOME_Exception);
330 * Clear the log of nodes and elements added or removed since previous
331 * clear. Must be used immediately after GetLog if clearAfterGet is false.
334 raises (SALOME::SALOME_Exception);
337 * Get the internal Id
347 * Obtain instance of SMESH_MeshEditor
349 SMESH_MeshEditor GetMeshEditor()
350 raises (SALOME::SALOME_Exception);
352 /*! Check group names for duplications.
353 * Consider maximum group name length stored in MED file.
355 boolean HasDuplicatedGroupNamesMED();
358 * Export Mesh to different MED Formats
360 * - auto_groups : boolean parameter for creating/not creating
361 * the groups Group_On_All_Nodes, Group_On_All_Faces, ... ;
362 * the typical use is auto_groups=false.
363 * - theVersion : define the version of format of MED file, that will be created
365 void ExportToMED( in string file, in boolean auto_groups, in MED_VERSION theVersion )
366 raises (SALOME::SALOME_Exception);
369 * Export Mesh to MED_V2_1 MED format
370 * Works, just the same as ExportToMED, with MED_VERSION parameter equal to MED_V2_1.
371 * The method is kept in order to support old functionality
373 void ExportMED( in string file, in boolean auto_groups )
374 raises (SALOME::SALOME_Exception);
377 * Export Mesh to DAT, UNV and STL Formats
378 * (UNV supported version is I-DEAS 10)
380 void ExportDAT( in string file )
381 raises (SALOME::SALOME_Exception);
382 void ExportUNV( in string file )
383 raises (SALOME::SALOME_Exception);
384 void ExportSTL( in string file, in boolean isascii )
385 raises (SALOME::SALOME_Exception);
390 SALOME_MED::MESH GetMEDMesh()
391 raises (SALOME::SALOME_Exception);
394 * Get informations about mesh contents
397 raises (SALOME::SALOME_Exception);
400 raises (SALOME::SALOME_Exception);
403 raises (SALOME::SALOME_Exception);
405 long NbEdgesOfOrder(in ElementOrder order)
406 raises (SALOME::SALOME_Exception);
409 raises (SALOME::SALOME_Exception);
411 long NbFacesOfOrder(in ElementOrder order)
412 raises (SALOME::SALOME_Exception);
415 raises (SALOME::SALOME_Exception);
417 long NbTrianglesOfOrder(in ElementOrder order)
418 raises (SALOME::SALOME_Exception);
421 raises (SALOME::SALOME_Exception);
423 long NbQuadranglesOfOrder(in ElementOrder order)
424 raises (SALOME::SALOME_Exception);
427 raises (SALOME::SALOME_Exception);
430 raises (SALOME::SALOME_Exception);
432 long NbVolumesOfOrder(in ElementOrder order)
433 raises (SALOME::SALOME_Exception);
436 raises (SALOME::SALOME_Exception);
438 long NbTetrasOfOrder(in ElementOrder order)
439 raises (SALOME::SALOME_Exception);
442 raises (SALOME::SALOME_Exception);
444 long NbHexasOfOrder(in ElementOrder order)
445 raises (SALOME::SALOME_Exception);
448 raises (SALOME::SALOME_Exception);
450 long NbPyramidsOfOrder(in ElementOrder order)
451 raises (SALOME::SALOME_Exception);
454 raises (SALOME::SALOME_Exception);
456 long NbPrismsOfOrder(in ElementOrder order)
457 raises (SALOME::SALOME_Exception);
460 raises (SALOME::SALOME_Exception);
463 raises (SALOME::SALOME_Exception);
465 long_array GetElementsId()
466 raises (SALOME::SALOME_Exception);
468 long_array GetElementsByType( in ElementType theType )
469 raises (SALOME::SALOME_Exception);
471 long_array GetNodesId()
472 raises (SALOME::SALOME_Exception);
475 * Returns type of mesh element
477 ElementType GetElementType( in long id, in boolean iselem )
478 raises (SALOME::SALOME_Exception);
480 long_array GetSubMeshElementsId(in long ShapeID)
481 raises (SALOME::SALOME_Exception);
483 long_array GetSubMeshNodesId(in long ShapeID, in boolean all )
484 raises (SALOME::SALOME_Exception);
486 ElementType GetSubMeshElementType(in long ShapeID)
487 raises (SALOME::SALOME_Exception);
490 * Get mesh description
500 * Get XYZ coordinates of node as list of double
501 * If there is not node for given ID - returns empty list
503 double_array GetNodeXYZ(in long id);
506 * For given node returns list of IDs of inverse elements
507 * If there is not node for given ID - returns empty list
509 long_array GetNodeInverseElements(in long id);
512 * If given element is node returns IDs of shape from position
513 * If there is not node for given ID - returns -1
515 long GetShapeID(in long id);
518 * For given element returns ID of result shape after
519 * ::FindShape() from SMESH_MeshEditor
520 * If there is not element for given ID - returns -1
522 long GetShapeIDForElem(in long id);
525 * Returns number of nodes for given element
526 * If there is not element for given ID - returns -1
528 long GetElemNbNodes(in long id);
531 * Returns IDs of nodes of given element
533 long_array GetElemNodes(in long id);
536 * Returns ID of node by given index for given element
537 * If there is not element for given ID - returns -1
538 * If there is not node for given index - returns -2
540 long GetElemNode(in long id, in long index);
543 * Returns true if given node is medium node
544 * in given quadratic element
546 boolean IsMediumNode(in long ide, in long idn);
549 * Returns true if given node is medium node
550 * in one of quadratic elements
552 boolean IsMediumNodeOfAnyElem(in long idn, in ElementType elem_type);
555 * Returns number of edges for given element
557 long ElemNbEdges(in long id);
560 * Returns number of faces for given element
562 long ElemNbFaces(in long id);
565 * Returns true if given element is polygon
567 boolean IsPoly(in long id);
570 * Returns true if given element is quadratic
572 boolean IsQuadratic(in long id);
575 * Returns XYZ coordinates of bary center for given element
577 * If there is not element for given ID - returns empty list
579 double_array BaryCenter(in long id);
583 interface SMESH_subMesh : SALOME::GenericObj, SMESH_IDSource
588 long GetNumberOfElements()
589 raises (SALOME::SALOME_Exception);
594 long GetNumberOfNodes( in boolean all )
595 raises (SALOME::SALOME_Exception);
600 long_array GetElementsId()
601 raises (SALOME::SALOME_Exception);
606 long_array GetElementsByType( in ElementType theType )
607 raises (SALOME::SALOME_Exception);
610 * Return type of submesh element
612 ElementType GetElementType( in long id, in boolean iselem )
613 raises (SALOME::SALOME_Exception);
618 long_array GetNodesId()
619 raises (SALOME::SALOME_Exception);
622 * Get geom shape the submesh is dedicated to
624 GEOM::GEOM_Object GetSubShape()
625 raises (SALOME::SALOME_Exception);
628 * Get SMESH_Mesh which stores nodes coordinates & elements definition
630 SMESH_Mesh GetFather()
631 raises (SALOME::SALOME_Exception);
634 * Get the internal Id
641 SALOME_MED::FAMILY GetFamily()
642 raises (SALOME::SALOME_Exception);
646 * This interface makes modifications on the Mesh - removing elements and nodes etc.
648 interface NumericalFunctor;
649 interface SMESH_MeshEditor
651 boolean RemoveElements(in long_array IDsOfElements);
653 boolean RemoveNodes(in long_array IDsOfNodes);
655 long AddNode(in double x, in double y, in double z);
658 * Create edge, either linear and quadratic (this is determed
659 * by number of given nodes).
660 * \param IdsOfNodes List of node IDs for creation of element.
661 * Needed order of nodes in this list corresponds to description
662 * of MED. This description is located by the following link:
663 * http://www.salome-platform.org/salome2/web_med_internet/logiciels/medV2.2.2_doc_html/html/modele_de_donnees.html#3.
665 long AddEdge(in long_array IDsOfNodes);
668 * Create face, either linear and quadratic (this is determed
669 * by number of given nodes).
670 * \param IdsOfNodes List of node IDs for creation of element.
671 * Needed order of nodes in this list corresponds to description
672 * of MED. This description is located by the following link:
673 * http://www.salome-platform.org/salome2/web_med_internet/logiciels/medV2.2.2_doc_html/html/modele_de_donnees.html#3.
675 long AddFace(in long_array IDsOfNodes);
677 long AddPolygonalFace(in long_array IdsOfNodes);
680 * Create volume, either linear and quadratic (this is determed
681 * by number of given nodes).
682 * \param IdsOfNodes List of node IDs for creation of element.
683 * Needed order of nodes in this list corresponds to description
684 * of MED. This description is located by the following link:
685 * http://www.salome-platform.org/salome2/web_med_internet/logiciels/medV2.2.2_doc_html/html/modele_de_donnees.html#3.
687 long AddVolume(in long_array IDsOfNodes);
690 * Create volume of many faces, giving nodes for each face.
691 * \param IdsOfNodes List of node IDs for volume creation face by face.
692 * \param Quantities List of integer values, Quantities[i]
693 * gives quantity of nodes in face number i.
695 long AddPolyhedralVolume (in long_array IdsOfNodes,
696 in long_array Quantities);
699 * Create volume of many faces, giving IDs of existing faces.
700 * \param IdsOfFaces List of face IDs for volume creation.
701 * \note The created volume will refer only to nodes
702 * of the given faces, not to the faces itself.
704 long AddPolyhedralVolumeByFaces (in long_array IdsOfFaces);
706 boolean MoveNode(in long NodeID, in double x, in double y, in double z);
708 boolean InverseDiag(in long NodeID1, in long NodeID2);
710 boolean DeleteDiag(in long NodeID1, in long NodeID2);
712 boolean Reorient(in long_array IDsOfElements);
714 boolean ReorientObject(in SMESH_IDSource theObject);
717 * \brief Fuse neighbour triangles into quadrangles.
718 * \param theElems The triangles to be fused.
719 * \param theCriterion Is used to choose a neighbour to fuse with.
720 * \param theMaxAngle Is a max angle between element normals at which fusion
721 * is still performed; theMaxAngle is mesured in radians.
722 * \return TRUE in case of success, FALSE otherwise.
724 boolean TriToQuad (in long_array IDsOfElements,
725 in NumericalFunctor Criterion,
729 * \brief Fuse neighbour triangles into quadrangles.
731 * Behaves like the above method, taking list of elements from \a theObject
733 boolean TriToQuadObject (in SMESH_IDSource theObject,
734 in NumericalFunctor Criterion,
738 * \brief Split quadrangles into triangles.
739 * \param theElems The faces to be splitted.
740 * \param theCriterion Is used to choose a diagonal for splitting.
741 * \return TRUE in case of success, FALSE otherwise.
743 boolean QuadToTri (in long_array IDsOfElements,
744 in NumericalFunctor Criterion);
747 * \brief Split quadrangles into triangles.
749 * Behaves like the above method, taking list of elements from \a theObject
751 boolean QuadToTriObject (in SMESH_IDSource theObject,
752 in NumericalFunctor Criterion);
755 * \brief Split quadrangles into triangles.
756 * \param theElems The faces to be splitted.
757 * \param the13Diag Is used to choose a diagonal for splitting.
758 * \return TRUE in case of success, FALSE otherwise.
760 boolean SplitQuad (in long_array IDsOfElements,
764 * \brief Split quadrangles into triangles.
766 * Behaves like the above method, taking list of elements from \a theObject
768 boolean SplitQuadObject (in SMESH_IDSource theObject,
772 * Find better splitting of the given quadrangle.
773 * \param IDOfQuad ID of the quadrangle to be splitted.
774 * \param Criterion A criterion to choose a diagonal for splitting.
775 * \return 1 if 1-3 diagonal is better, 2 if 2-4
776 * diagonal is better, 0 if error occurs.
778 long BestSplit (in long IDOfQuad,
779 in NumericalFunctor Criterion);
781 enum Smooth_Method { LAPLACIAN_SMOOTH, CENTROIDAL_SMOOTH };
783 boolean Smooth(in long_array IDsOfElements,
784 in long_array IDsOfFixedNodes,
785 in long MaxNbOfIterations,
786 in double MaxAspectRatio,
787 in Smooth_Method Method);
789 boolean SmoothObject(in SMESH_IDSource theObject,
790 in long_array IDsOfFixedNodes,
791 in long MaxNbOfIterations,
792 in double MaxAspectRatio,
793 in Smooth_Method Method);
795 boolean SmoothParametric(in long_array IDsOfElements,
796 in long_array IDsOfFixedNodes,
797 in long MaxNbOfIterations,
798 in double MaxAspectRatio,
799 in Smooth_Method Method);
801 boolean SmoothParametricObject(in SMESH_IDSource theObject,
802 in long_array IDsOfFixedNodes,
803 in long MaxNbOfIterations,
804 in double MaxAspectRatio,
805 in Smooth_Method Method);
807 void ConvertToQuadratic(in boolean theForce3d);
809 boolean ConvertFromQuadratic();
811 void RenumberNodes();
813 void RenumberElements();
815 void RotationSweep(in long_array IDsOfElements,
817 in double AngleInRadians,
819 in double Tolerance);
821 void RotationSweepObject(in SMESH_IDSource theObject,
823 in double AngleInRadians,
825 in double Tolerance);
827 void ExtrusionSweep(in long_array IDsOfElements,
828 in DirStruct StepVector,
832 * Generate new elements by extrusion of theElements
833 * by StepVector by NbOfSteps
834 * param ExtrFlags set flags for performing extrusion
835 * param SewTolerance - uses for comparing locations of nodes if flag
836 * EXTRUSION_FLAG_SEW is set
838 void AdvancedExtrusion(in long_array IDsOfElements,
839 in DirStruct StepVector,
842 in double SewTolerance);
844 void ExtrusionSweepObject(in SMESH_IDSource theObject,
845 in DirStruct StepVector,
848 void ExtrusionSweepObject1D(in SMESH_IDSource theObject,
849 in DirStruct StepVector,
852 void ExtrusionSweepObject2D(in SMESH_IDSource theObject,
853 in DirStruct StepVector,
856 enum Extrusion_Error {
861 EXTR_BAD_STARTING_NODE,
862 EXTR_BAD_ANGLES_NUMBER,
863 EXTR_CANT_GET_TANGENT
866 Extrusion_Error ExtrusionAlongPath(in long_array IDsOfElements,
867 in SMESH_Mesh PathMesh,
868 in GEOM::GEOM_Object PathShape,
870 in boolean HasAngles,
871 in double_array Angles,
872 in boolean HasRefPoint,
873 in PointStruct RefPoint);
875 Extrusion_Error ExtrusionAlongPathObject(in SMESH_IDSource theObject,
876 in SMESH_Mesh PathMesh,
877 in GEOM::GEOM_Object PathShape,
879 in boolean HasAngles,
880 in double_array Angles,
881 in boolean HasRefPoint,
882 in PointStruct RefPoint);
884 enum MirrorType { POINT, AXIS, PLANE };
886 void Mirror (in long_array IDsOfElements,
887 in AxisStruct Mirror,
888 in MirrorType theMirrorType,
891 void MirrorObject (in SMESH_IDSource theObject,
892 in AxisStruct Mirror,
893 in MirrorType theMirrorType,
896 void Translate (in long_array IDsOfElements,
900 void TranslateObject (in SMESH_IDSource theObject,
904 void Rotate (in long_array IDsOfElements,
906 in double AngleInRadians,
909 void RotateObject (in SMESH_IDSource theObject,
911 in double AngleInRadians,
914 void FindCoincidentNodes (in double Tolerance,
915 out array_of_long_array GroupsOfNodes);
917 void MergeNodes (in array_of_long_array GroupsOfNodes);
919 void MergeEqualElements();
923 SEW_BORDER1_NOT_FOUND,
924 SEW_BORDER2_NOT_FOUND,
925 SEW_BOTH_BORDERS_NOT_FOUND,
927 SEW_VOLUMES_TO_SPLIT,
928 // for SewSideElements() only:
929 SEW_DIFF_NB_OF_ELEMENTS,
930 SEW_TOPO_DIFF_SETS_OF_ELEMENTS,
935 Sew_Error SewFreeBorders (in long FirstNodeID1,
936 in long SecondNodeID1,
938 in long FirstNodeID2,
939 in long SecondNodeID2,
941 in boolean CreatePolygons,
942 in boolean CreatePolyedrs);
944 Sew_Error SewConformFreeBorders (in long FirstNodeID1,
945 in long SecondNodeID1,
947 in long FirstNodeID2,
948 in long SecondNodeID2);
950 Sew_Error SewBorderToSide (in long FirstNodeIDOnFreeBorder,
951 in long SecondNodeIDOnFreeBorder,
952 in long LastNodeIDOnFreeBorder,
953 in long FirstNodeIDOnSide,
954 in long LastNodeIDOnSide,
955 in boolean CreatePolygons,
956 in boolean CreatePolyedrs);
958 Sew_Error SewSideElements (in long_array IDsOfSide1Elements,
959 in long_array IDsOfSide2Elements,
960 in long NodeID1OfSide1ToMerge,
961 in long NodeID1OfSide2ToMerge,
962 in long NodeID2OfSide1ToMerge,
963 in long NodeID2OfSide2ToMerge);
966 * Set new nodes for given element.
967 * If number of nodes is not corresponded to type of
968 * element - returns false
970 boolean ChangeElemNodes(in long ide, in long_array newIDs);
973 * If during last operation of MeshEditor some nodes were
974 * created this method returns list of it's IDs, if new nodes
975 * not creared - returns empty list
977 long_array GetLastCreatedNodes();
980 * If during last operation of MeshEditor some elements were
981 * created this method returns list of it's IDs, if new elements
982 * not creared - returns empty list
984 long_array GetLastCreatedElems();