Browse Source

rm using namespace igl

Former-commit-id: 2a924daa775658d13aa270c6e041ad5f9418787e
Alec Jacobson 10 years ago
parent
commit
77b87e622a

+ 0 - 3
include/igl/per_corner_normals.cpp

@@ -18,7 +18,6 @@ IGL_INLINE void igl::per_corner_normals(
   const double corner_threshold,
   Eigen::PlainObjectBase<DerivedV> & CN)
 {
-  using namespace igl;
   using namespace Eigen;
   using namespace std;
   Eigen::PlainObjectBase<DerivedV> FN;
@@ -36,7 +35,6 @@ IGL_INLINE void igl::per_corner_normals(
   const double corner_threshold,
   Eigen::PlainObjectBase<DerivedCN> & CN)
 {
-  using namespace igl;
   using namespace Eigen;
   using namespace std;
   vector<vector<int> > VF,VFi;
@@ -53,7 +51,6 @@ IGL_INLINE void igl::per_corner_normals(
   const double corner_threshold,
   Eigen::PlainObjectBase<DerivedV> & CN)
 {
-  using namespace igl;
   using namespace Eigen;
   using namespace std;
 

+ 0 - 1
include/igl/quat_to_axis_angle.cpp

@@ -18,7 +18,6 @@ IGL_INLINE void igl::quat_to_axis_angle(
   Q_type *axis, 
   Q_type & angle)
 {
-  using namespace igl;
     if( fabs(q[3])>(1.0 + igl::EPS<Q_type>()) )
     {
         //axis[0] = axis[1] = axis[2] = 0; // no, keep the previous value

+ 0 - 2
include/igl/random_dir.cpp

@@ -12,7 +12,6 @@
 IGL_INLINE Eigen::Vector3d igl::random_dir()
 {
   using namespace Eigen;
-  using namespace igl;
   double z =  (double)rand() / (double)RAND_MAX*2.0 - 1.0;
   double t =  (double)rand() / (double)RAND_MAX*2.0*PI;
   // http://www.altdevblogaday.com/2012/05/03/generating-uniformly-distributed-points-on-sphere/
@@ -25,7 +24,6 @@ IGL_INLINE Eigen::Vector3d igl::random_dir()
 IGL_INLINE Eigen::MatrixXd igl::random_dir_stratified(const int n)
 {
   using namespace Eigen;
-  using namespace igl;
   using namespace std;
   const double m = floor(sqrt(double(n)));
   MatrixXd N(n,3);

+ 0 - 1
include/igl/readCSV.cpp

@@ -20,7 +20,6 @@ IGL_INLINE bool igl::readCSV(
   Eigen::Matrix<Scalar,Eigen::Dynamic,Eigen::Dynamic>& M)
 {
   using namespace std;
-  using namespace igl;
 
   std::vector<std::vector<Scalar> > Mt;
   

+ 0 - 2
include/igl/readMESH.cpp

@@ -18,7 +18,6 @@ IGL_INLINE bool igl::readMESH(
   std::vector<std::vector<Index > > & F)
 {
   using namespace std;
-  using namespace igl;
   FILE * mesh_file = fopen(mesh_file_name.c_str(),"r");
   if(NULL==mesh_file)
   {
@@ -233,7 +232,6 @@ IGL_INLINE bool igl::readMESH(
   Eigen::PlainObjectBase<DerivedF>& F)
 {
   using namespace std;
-  using namespace igl;
   FILE * mesh_file = fopen(mesh_file_name.c_str(),"r");
   if(NULL==mesh_file)
   {

+ 1 - 2
include/igl/readNODE.cpp

@@ -10,7 +10,7 @@
 #include <stdio.h>
 
 template <typename Scalar, typename Index>
-IGL_INLINE bool readNODE(
+IGL_INLINE bool igl::readNODE(
   const std::string node_file_name,
   std::vector<std::vector<Scalar > > & V,
   std::vector<std::vector<Index > > & I)
@@ -36,7 +36,6 @@ IGL_INLINE bool igl::readNODE(
   Eigen::PlainObjectBase<DerivedI>& I)
 {
   using namespace std;
-  using namespace igl;
   FILE * node_file = fopen(node_file_name.c_str(),"r");
   if(NULL==node_file)
   {

+ 0 - 1
include/igl/readTGF.cpp

@@ -148,7 +148,6 @@ IGL_INLINE bool igl::readTGF(
   Eigen::MatrixXi & CE,
   Eigen::MatrixXi & PE)
 {
-  using namespace igl;
   std::vector<std::vector<double> > vC;
   std::vector<std::vector<int> > vE;
   std::vector<int> vP;

+ 0 - 1
include/igl/read_triangle_mesh.cpp

@@ -30,7 +30,6 @@ IGL_INLINE bool igl::read_triangle_mesh(
   std::vector<std::vector<Index> > & F)
 {
   using namespace std;
-  using namespace igl;
   // dirname, basename, extension and filename
   string d,b,e,f;
   pathinfo(str,d,b,e,f);

+ 0 - 1
include/igl/remove_duplicate_vertices.cpp

@@ -24,7 +24,6 @@ IGL_INLINE void igl::remove_duplicate_vertices(
   Eigen::PlainObjectBase<DerivedSVI>& SVI,
   Eigen::PlainObjectBase<DerivedSVJ>& SVJ)
 {
-  using namespace igl;
   if(epsilon > 0)
   {
     Eigen::PlainObjectBase<DerivedV> rV,rSV;

+ 0 - 5
include/igl/sort_triangles.cpp

@@ -32,7 +32,6 @@ IGL_INLINE void igl::sort_triangles(
   Eigen::PlainObjectBase<DerivedI> & I)
 {
   using namespace Eigen;
-  using namespace igl;
   using namespace std;
 
 
@@ -101,7 +100,6 @@ void igl::sort_triangles(
   Eigen::PlainObjectBase<DerivedI> & I)
 {
   using namespace Eigen;
-  using namespace igl;
   using namespace std;
   // Put model, projection, and viewport matrices into double arrays
   Matrix4d MV;
@@ -136,7 +134,6 @@ void igl::sort_triangles_slow(
   Eigen::PlainObjectBase<DerivedI> & I)
 {
   using namespace Eigen;
-  using namespace igl;
   using namespace std;
   // Barycenter, centroid
   Eigen::Matrix<typename DerivedV::Scalar, DerivedF::RowsAtCompileTime,1> D,sD;
@@ -463,7 +460,6 @@ class Triangle
 //    "must be drawn before that one'");
 //  using namespace std;
 //  using namespace Eigen;
-//  using namespace igl;
 //  typedef Matrix<typename DerivedV::Scalar,3,1> Vec3;
 //  assert(V.cols() == 4);
 //  Matrix<typename DerivedV::Scalar, DerivedV::RowsAtCompileTime,3> VMVP =
@@ -542,7 +538,6 @@ class Triangle
 //  Eigen::PlainObjectBase<DerivedI> & I)
 //{
 //  using namespace Eigen;
-//  using namespace igl;
 //  using namespace std;
 //  // Put model, projection, and viewport matrices into double arrays
 //  Matrix4d MV;

+ 0 - 1
include/igl/sortrows.cpp

@@ -61,7 +61,6 @@ IGL_INLINE void igl::sortrows(
   // improvement.
   using namespace std;
   using namespace Eigen;
-  using namespace igl;
   // Resize output
   Y.resize(X.rows(),X.cols());
   IX.resize(X.rows(),1);

+ 0 - 1
include/igl/texture_from_tga.cpp

@@ -15,7 +15,6 @@
 IGL_INLINE bool igl::texture_from_tga(const std::string tga_file, GLuint & id)
 {
   using namespace std;
-  using namespace igl;
 
   // read pixels to tga file
   FILE * imgFile;

+ 0 - 2
include/igl/uniformly_sample_two_manifold.cpp

@@ -29,7 +29,6 @@ IGL_INLINE void igl::uniformly_sample_two_manifold(
   Eigen::MatrixXd & WS)
 {
   using namespace Eigen;
-  using namespace igl;
   using namespace std;
 
   // Euclidean distance between two points on a mesh given as barycentric
@@ -351,7 +350,6 @@ IGL_INLINE void igl::uniformly_sample_two_manifold_at_vertices(
   Eigen::VectorXi & S)
 {
   using namespace Eigen;
-  using namespace igl;
   using namespace std;
 
   // Copy weights and faces

+ 0 - 1
include/igl/unique.cpp

@@ -208,7 +208,6 @@ IGL_INLINE void igl::unique_rows(
   Eigen::PlainObjectBase<DerivedIC>& IC)
 {
   using namespace std;
-  using namespace igl;
   using namespace Eigen;
   VectorXi IM;
   Eigen::PlainObjectBase<DerivedA> sortA;

+ 0 - 1
include/igl/unique_simplices.cpp

@@ -22,7 +22,6 @@ IGL_INLINE void igl::unique_simplices(
   Eigen::PlainObjectBase<DerivedIC>& IC)
 {
   using namespace Eigen;
-  using namespace igl;
   using namespace std;
   // Sort each face
   MatrixXi sortF, unusedI;

+ 0 - 1
include/igl/upsample.cpp

@@ -25,7 +25,6 @@ IGL_INLINE void igl::upsample(
   // Use "in place" wrapper instead
   assert(&V != &NV);
   assert(&F != &NF);
-  using namespace igl;
   using namespace std;
   using namespace Eigen;
 

+ 0 - 1
include/igl/writeMESH.cpp

@@ -52,7 +52,6 @@ IGL_INLINE bool igl::writeMESH(
   const Eigen::PlainObjectBase<DerivedF> & F)
 {
   using namespace std;
-  using namespace igl;
   using namespace Eigen;
 
   //// This is (surprisingly) slower than the C-ish code below

+ 0 - 1
include/igl/writeTGF.cpp

@@ -63,7 +63,6 @@ IGL_INLINE bool igl::writeTGF(
   const Eigen::MatrixXd & C,
   const Eigen::MatrixXi & E)
 {
-  using namespace igl;
   using namespace std;
   vector<vector<double> > vC;
   vector<vector<int> > vE;