+ SMESH::array_of_ElementType_var types = theObject->GetTypes();
+ SMESH::smIdType_array_var aElementsId = theObject->GetIDs();
+ // here we assume that type of all IDs defined by first type in array
+ const bool isNode = isNodeType( types );
+ for(int i = 0, n = aElementsId->length(); i < n; i++)