Эх сурвалжийг харах

computelim -> lim

Former-commit-id: 1bfcdfe3e3169511b532fac270def2e815ff957a
Daniele Panozzo 11 жил өмнө
parent
commit
642c541943

+ 5 - 5
include/igl/lim/compute_lim.cpp → include/igl/lim/lim.cpp

@@ -5,10 +5,10 @@
 // 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 "compute_lim.h"
+#include "lim.h"
 #include <LIMSolverInterface.h>
 
-IGL_INLINE int igl::compute_lim(
+IGL_INLINE int igl::lim(
   Eigen::Matrix<double,Eigen::Dynamic,3>& vertices,
   const Eigen::Matrix<double,Eigen::Dynamic,3>& initialVertices,
   const Eigen::Matrix<int,Eigen::Dynamic,Eigen::Dynamic>& elements,
@@ -32,7 +32,7 @@ IGL_INLINE int igl::compute_lim(
     );
 }
 
-IGL_INLINE int igl::compute_lim(
+IGL_INLINE int igl::lim(
   Eigen::Matrix<double,Eigen::Dynamic,3>& vertices,
   const Eigen::Matrix<double,Eigen::Dynamic,3>& initialVertices,
   const Eigen::Matrix<int,Eigen::Dynamic,Eigen::Dynamic>& elements,
@@ -66,7 +66,7 @@ IGL_INLINE int igl::compute_lim(
     );
 }
 
-IGL_INLINE int igl::compute_lim(
+IGL_INLINE int igl::lim(
   Eigen::Matrix<double,Eigen::Dynamic,3>& vertices,
   const Eigen::Matrix<double,Eigen::Dynamic,3>& initialVertices,
   const Eigen::Matrix<int,Eigen::Dynamic,Eigen::Dynamic>& elements,
@@ -94,7 +94,7 @@ IGL_INLINE int igl::compute_lim(
     );
 }
 
-IGL_INLINE int igl::compute_lim(
+IGL_INLINE int igl::lim(
   Eigen::Matrix<double,Eigen::Dynamic,3>& vertices,
   const Eigen::Matrix<double,Eigen::Dynamic,3>& initialVertices,
   const Eigen::Matrix<int,Eigen::Dynamic,Eigen::Dynamic>& elements,

+ 6 - 6
include/igl/lim/compute_lim.h → include/igl/lim/lim.h

@@ -33,7 +33,7 @@ namespace igl
   //   enableAlphaUpdate (optional) enables dynamic alpha weight adjustment (default = true)
   //   beta              (optional) steepness factor of barrier slopes (default: ARAP/LSCM = 0.01, Green = 1)
   //   eps               (optional) smallest valid triangle area (default: 1e-5 * smallest triangle)
-  //   
+  //
   // where:
   //   v : # vertices
   //   c : # linear constraints
@@ -48,7 +48,7 @@ namespace igl
   // -1 : Max iteration reached before tolerance was fulfilled
   // -2 : not feasible -> has inverted elements (may want to decrease eps?)
 
-  int compute_lim(
+  int lim(
     Eigen::Matrix<double,Eigen::Dynamic,3>& vertices,
     const Eigen::Matrix<double,Eigen::Dynamic,3>& initialVertices,
     const Eigen::Matrix<int,Eigen::Dynamic,Eigen::Dynamic>& elements,
@@ -59,7 +59,7 @@ namespace igl
     int maxIteration,
     bool findLocalMinima);
 
-  int compute_lim(
+  int lim(
     Eigen::Matrix<double,Eigen::Dynamic,3>& vertices,
     const Eigen::Matrix<double,Eigen::Dynamic,3>& initialVertices,
     const Eigen::Matrix<int,Eigen::Dynamic,Eigen::Dynamic>& elements,
@@ -75,7 +75,7 @@ namespace igl
     double beta,
     double eps);
 
-  int compute_lim(
+  int lim(
     Eigen::Matrix<double,Eigen::Dynamic,3>& vertices,
     const Eigen::Matrix<double,Eigen::Dynamic,3>& initialVertices,
     const Eigen::Matrix<int,Eigen::Dynamic,Eigen::Dynamic>& elements,
@@ -88,7 +88,7 @@ namespace igl
     int maxIteration,
     bool findLocalMinima);
 
-  int compute_lim(
+  int lim(
     Eigen::Matrix<double,Eigen::Dynamic,3>& vertices,
     const Eigen::Matrix<double,Eigen::Dynamic,3>& initialVertices,
     const Eigen::Matrix<int,Eigen::Dynamic,Eigen::Dynamic>& elements,
@@ -108,7 +108,7 @@ namespace igl
 }
 
 #ifndef IGL_STATIC_LIBRARY
-#  include "compute_lim.cpp"
+#  include "lim.cpp"
 #endif
 
 #endif

+ 3 - 3
tutorial/608_LIM/main.cpp

@@ -4,7 +4,7 @@
 #include <igl/avg_edge_length.h>
 #include <iostream>
 
-#include "igl/lim/compute_lim.h"
+#include "igl/lim/lim.h"
 
 using namespace Eigen;
 using namespace std;
@@ -45,7 +45,7 @@ bool key_down(igl::Viewer& viewer,unsigned char key,int modifier)
     }
 
     if(key != '0')
-      igl::compute_lim(V1,V0,F,C,b,energyType,1e-8,100,true,true,barriersEnabled,true,-1,-1);
+      igl::lim(V1,V0,F,C,b,energyType,1e-8,100,true,true,barriersEnabled,true,-1,-1);
 
     // set mesh
     viewer.set_vertices(V1);
@@ -101,7 +101,7 @@ int main(int argc, char *argv[])
   b(2*fixedVertices.size()+1) = 0.2;
 
   // compute locally injective map
-  igl::compute_lim(V1,V0,F,C,b,energyType,1e-8,100,true,true,barriersEnabled,true,-1,-1);
+  igl::lim(V1,V0,F,C,b,energyType,1e-8,100,true,true,barriersEnabled,true,-1,-1);
 
   // Show mesh
   igl::Viewer viewer;