Przeglądaj źródła

renamed read_eigen... to readCSV to match others

Former-commit-id: 44eece47540542ae5254847e78018e53217c48d7
Alec Jacobson (jalec 11 lat temu
rodzic
commit
7afa4c43c9
2 zmienionych plików z 10 dodań i 6 usunięć
  1. 4 2
      include/igl/readCSV.cpp
  2. 6 4
      include/igl/readCSV.h

+ 4 - 2
include/igl/read_eigen_from_CSV.cpp → include/igl/readCSV.cpp

@@ -5,7 +5,7 @@
 // This Source Code Form is subject to the terms of the Mozilla Public License 
 // v. 2.0. If a copy of the MPL was not distributed with this file, You can 
 // obtain one at http://mozilla.org/MPL/2.0/.
-#include "read_eigen_from_CSV.h"
+#include "readCSV.h"
 
 #include <sstream>
 #include <string>
@@ -15,7 +15,9 @@
 #include <vector>
 
 template <typename Scalar>
-IGL_INLINE bool igl::read_eigen_from_CSV(const std::string str, Eigen::Matrix<Scalar,Eigen::Dynamic,Eigen::Dynamic>& M)
+IGL_INLINE bool igl::readCSV(
+  const std::string str, 
+  Eigen::Matrix<Scalar,Eigen::Dynamic,Eigen::Dynamic>& M)
 {
   using namespace std;
   using namespace igl;

+ 6 - 4
include/igl/read_eigen_from_CSV.h → include/igl/readCSV.h

@@ -5,8 +5,8 @@
 // This Source Code Form is subject to the terms of the Mozilla Public License 
 // v. 2.0. If a copy of the MPL was not distributed with this file, You can 
 // obtain one at http://mozilla.org/MPL/2.0/.
-#ifndef IGL_READ_EIGEN_FROM_CSV_H
-#define IGL_READ_EIGEN_FROM_CSV_H
+#ifndef IGL_READ_CSV_H
+#define IGL_READ_CSV_H
 
 #include "igl/igl_inline.h"
 #include <Eigen/Core>
@@ -23,11 +23,13 @@ namespace igl
   // Outputs:
   //   M  eigen matrix 
   template <typename Scalar>
-  IGL_INLINE bool read_eigen_from_CSV(const std::string str, Eigen::Matrix<Scalar,Eigen::Dynamic,Eigen::Dynamic>& M);
+  IGL_INLINE bool readCSV(
+    const std::string str, 
+    Eigen::Matrix<Scalar,Eigen::Dynamic,Eigen::Dynamic>& M);
 }
 
 #ifdef IGL_HEADER_ONLY
-#  include "read_eigen_from_CSV.cpp"
+#  include "readCSV.cpp"
 #endif
 
 #endif