]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
IMP: DriverGMF/SizeMaps: Added a method to get the name of the size map files (with...
authorrnc <rnc@opencascade.com>
Thu, 22 Aug 2013 09:46:21 +0000 (09:46 +0000)
committerrnc <rnc@opencascade.com>
Thu, 22 Aug 2013 09:46:21 +0000 (09:46 +0000)
src/DriverGMF/DriverGMF_Write.cxx
src/DriverGMF/DriverGMF_Write.hxx

index 49f3ff00ca1483e60a817797b7ece81d0fc5be57..4192119a25dfabc311f02c672c58b93a7e0de6e7 100644 (file)
@@ -369,12 +369,10 @@ Driver_Mesh::Status DriverGMF_Write::PerformSizeMap( const std::vector<Control_P
 {
 //   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();
   
@@ -398,6 +396,14 @@ Driver_Mesh::Status DriverGMF_Write::PerformSizeMap( const std::vector<Control_P
   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
index f92f1706a5de151e6a3d91aae0cc7e9db7afabff..b6b41bced14ee1c0f8e2321c59b6a056078cd3a8 100644 (file)
@@ -74,8 +74,10 @@ public:
   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:
 
@@ -84,7 +86,8 @@ public:
   SMDS_ElemIteratorPtr elementIterator(SMDSAbs_GeometryType type);
 
   bool _exportRequiredGroups;
-  std::string mySizeMapPrefix;
+  std::string myVerticesFile;
+  std::string mySolFile;
 };
 
 #endif