Browse Source

plane_project --> project_isometrically_to_plane

Former-commit-id: fd5861b15bbdbc0f3af0b3ff7531ac646c796bca
Alec Jacobson 11 years ago
parent
commit
e7f4b0154a

+ 3 - 3
include/igl/plane_project.cpp → include/igl/project_isometrically_to_plane.cpp

@@ -1,4 +1,4 @@
-#include "plane_project.h"
+#include "project_isometrically_to_plane.h"
 #include "edge_lengths.h"
 
 template <
@@ -7,7 +7,7 @@ template <
   typename DerivedU,
   typename DerivedUF,
   typename Scalar>
-IGL_INLINE void igl::plane_project(
+IGL_INLINE void igl::project_isometrically_to_plane(
   const Eigen::PlainObjectBase<DerivedV> & V, 
   const Eigen::PlainObjectBase<DerivedF> & F, 
   Eigen::PlainObjectBase<DerivedU> & U,
@@ -52,5 +52,5 @@ IGL_INLINE void igl::plane_project(
 }
 
 #ifdef IGL_STATIC_LIBRARY
-template void igl::plane_project<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1>, double>(Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> >&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> >&, Eigen::SparseMatrix<double, 0, int>&);
+template void igl::project_isometrically_to_plane<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1>, double>(Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> >&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> >&, Eigen::SparseMatrix<double, 0, int>&);
 #endif

+ 5 - 5
include/igl/plane_project.h → include/igl/project_isometrically_to_plane.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_PLANE_PROJECT_H
-#define IGL_PLANE_PROJECT_H
+#ifndef IGL_PROJECT_ISOMETRICALLY_TO_PLANE_H
+#define IGL_PROJECT_ISOMETRICALLY_TO_PLANE_H
 #include "igl_inline.h"
 
 #include <Eigen/Dense>
@@ -16,7 +16,7 @@ namespace igl
 {
   // Project each triangle to the plane
   //
-  // [U,UF,I] = plane_project(V,F)
+  // [U,UF,I] = project_isometrically_to_plane(V,F)
   //
   // Inputs:
   //   V  #V by 3 list of vertex positions
@@ -32,7 +32,7 @@ namespace igl
     typename DerivedU,
     typename DerivedUF,
     typename Scalar>
-  IGL_INLINE void plane_project(
+  IGL_INLINE void project_isometrically_to_plane(
     const Eigen::PlainObjectBase<DerivedV> & V, 
     const Eigen::PlainObjectBase<DerivedF> & F, 
     Eigen::PlainObjectBase<DerivedU> & U,
@@ -41,7 +41,7 @@ namespace igl
 }
 
 #ifndef IGL_STATIC_LIBRARY
-#  include "plane_project.cpp"
+#  include "project_isometrically_to_plane.cpp"
 #endif
 
 #endif

+ 2 - 2
include/igl/svd3x3/arap.cpp

@@ -13,7 +13,7 @@
 #include <igl/covariance_scatter_matrix.h>
 #include <igl/speye.h>
 #include <igl/mode.h>
-#include <igl/plane_project.h>
+#include <igl/project_isometrically_to_plane.h>
 #include <igl/slice.h>
 #include <igl/arap_rhs.h>
 #include <igl/repdiag.h>
@@ -61,7 +61,7 @@ IGL_INLINE bool igl::arap_precomputation(
   SparseMatrixS ref_map,ref_map_dim;
   if(flat)
   {
-    plane_project(V,F,plane_V,plane_F,ref_map);
+    project_isometrically_to_plane(V,F,plane_V,plane_F,ref_map);
     repdiag(ref_map,dim,ref_map_dim);
   }
   const PlainObjectBase<DerivedV>& ref_V = (flat?plane_V:V);