{
// const int dim = 3, version = sizeof(long) == 4 ? 2 : 3;
const int dim = 3, version = 2; // Version 3 not supported by mg-hexa
- std::string aVerticesFile = mySizeMapPrefix + ".mesh";
- std::string aSolFile = mySizeMapPrefix + ".sol";
// Open files
- int verticesFileID = GmfOpenMesh( aVerticesFile.c_str(), GmfWrite, version, dim );
- int solFileID = GmfOpenMesh( aSolFile.c_str(), GmfWrite, version, dim );
+ int verticesFileID = GmfOpenMesh( myVerticesFile.c_str(), GmfWrite, version, dim );
+ int solFileID = GmfOpenMesh( mySolFile.c_str(), GmfWrite, version, dim );
int pointsNumber = points.size();
GmfCloseMesh( solFileID );
}
+std::vector<std::string> DriverGMF_Write::GetSizeMapFiles()
+{
+ std::vector<std::string> files;
+ files.push_back(myVerticesFile);
+ files.push_back(mySolFile);
+ return files;
+}
+
//================================================================================
/*!
* \brief Returns an iterator on elements of a certain type
Status PerformSizeMap( const std::vector<Control_Pnt>& points );
void SetSizeMapPrefix( std::string prefix )
{
- mySizeMapPrefix = prefix;
+ myVerticesFile = prefix + ".mesh";
+ mySolFile = prefix + ".sol";
};
+ std::vector<std::string> GetSizeMapFiles();
private:
SMDS_ElemIteratorPtr elementIterator(SMDSAbs_GeometryType type);
bool _exportRequiredGroups;
- std::string mySizeMapPrefix;
+ std::string myVerticesFile;
+ std::string mySolFile;
};
#endif