#include <string>
#include <list>
#include <map>
+#include <vector>
class SMESHDS_Mesh;
class SMESHDS_GroupBase;
virtual void SetFile(const std::string& theFileName);
void SetFile(const std::string& theFileName, MED::EVersion theId);
void SetAutoDimension(bool toFindOutDimension) { myAutoDimension = toFindOutDimension; }
+
static std::string GetVersionString(const MED::EVersion theVersion, int theNbDigits=2);
- /*! sets file name; only for usage with Add(), not Write()
- */
void AddGroupOfNodes();
void AddGroupOfEdges();
void AddGroupOfFaces();
void AddGroup(SMESHDS_GroupBase * theGroup);
void AddAllSubMeshes();
void AddSubMesh(SMESHDS_SubMesh* theSubMesh, int theID);
+ void AddODOnVertices(bool toAdd) { myAddODOnVertices = toAdd; }
+
+ static bool getNodesOfMissing0DOnVert(SMESHDS_Mesh* mesh,
+ std::vector<const SMDS_MeshElement*>& nodes);
/*! add one mesh
*/
MED::EVersion myMedVersion;
std::list<SMESHDS_GroupBase*> myGroups;
bool myAllSubMeshes;
- std::map<int,SMESHDS_SubMesh*> mySubMeshes;
+ std::vector<SMESHDS_SubMesh*> mySubMeshes;
bool myDoGroupOfNodes;
bool myDoGroupOfEdges;
bool myDoGroupOfFaces;
bool myDoGroupOf0DElems;
bool myDoGroupOfBalls;
bool myAutoDimension;
+ bool myAddODOnVertices;
};
#endif