X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=idl%2FSMESH_Mesh.idl;h=fff0c51208e520826e4de5c40fdcfa9b16f73936;hp=fa5180a24d6f52d690eef70b88f991b70142ef36;hb=35c05cab652a5167972b9588db81fc4a2a9361b5;hpb=0635c9fc80f67d1e5dc0e94ec85f487286a92070 diff --git a/idl/SMESH_Mesh.idl b/idl/SMESH_Mesh.idl index fa5180a24..fff0c5120 100644 --- a/idl/SMESH_Mesh.idl +++ b/idl/SMESH_Mesh.idl @@ -46,6 +46,7 @@ module SMESH enum log_command { ADD_NODE, + ADD_ELEM0D, ADD_EDGE, ADD_TRIANGLE, ADD_QUADRANGLE, @@ -112,7 +113,8 @@ module SMESH NODE, EDGE, FACE, - VOLUME + VOLUME, + ELEM0D }; /*! @@ -141,6 +143,37 @@ module SMESH ORDER_QUADRATIC /*! entities of 2nd order */ }; + + /*! + * Enumeration of entity type uses in mesh info array, + * and should be synchronised with enum in SMDS + */ + enum EntityType + { + Entity_Node, + Entity_0D, + Entity_Edge, + Entity_Quad_Edge, + Entity_Triangle, + Entity_Quad_Triangle, + Entity_Quadrangle, + Entity_Quad_Quadrangle, + Entity_Polygon, + Entity_Quad_Polygon, + Entity_Tetra, + Entity_Quad_Tetra, + Entity_Pyramid, + Entity_Quad_Pyramid, + Entity_Hexa, + Entity_Quad_Hexa, + Entity_Penta, + Entity_Quad_Penta, + Entity_Polyhedra, + Entity_Quad_Polyhedra, + Entity_Last + }; + + /*! * Enumeration for hypothesis status (used by AddHypothesis() and RemoveHypothesis() methods) */ @@ -218,6 +251,12 @@ module SMESH * Returns a sequence of all element IDs */ long_array GetIDs(); + + /*! + * Returns statistic of mesh elements + * Result array of number enityties + */ + long_array GetMeshInfo(); }; interface SMESH_Group; @@ -532,6 +571,9 @@ module SMESH long NbElements() raises (SALOME::SALOME_Exception); + long Nb0DElements() + raises (SALOME::SALOME_Exception); + long NbEdges() raises (SALOME::SALOME_Exception);