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

project to line

Former-commit-id: 0f44b0ff87f47bc94d1931298ab612871223a61d
jalec 13 жил өмнө
parent
commit
a90c38cbe1

+ 5 - 2
include/igl/project_to_line.cpp

@@ -1,12 +1,13 @@
 #include "project_to_line.h"
 #include <cassert>
+#include <Eigen/Core>
 
 template <
   typename MatP, 
   typename MatL, 
   typename Matt, 
   typename MatsqrD>
-inline void igl::project_to_line(
+IGL_INLINE void igl::project_to_line(
   const MatP & P,
   const MatL & S,
   const MatL & D,
@@ -42,7 +43,7 @@ inline void igl::project_to_line(
 }
 
 template <typename Scalar>
-inline void igl::project_to_line(
+IGL_INLINE void igl::project_to_line(
   const Scalar px,
   const Scalar py,
   const Scalar pz,
@@ -84,4 +85,6 @@ inline void igl::project_to_line(
 
 #ifndef IGL_HEADER_ONLY
 // Explicit template specialization
+template void igl::project_to_line<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, 1, 0, -1, 1>, Eigen::Matrix<double, -1, 1, 0, -1, 1>, Eigen::Matrix<double, -1, 1, 0, -1, 1> >(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<double, -1, 1, 0, -1, 1> const&, Eigen::Matrix<double, -1, 1, 0, -1, 1> const&, Eigen::Matrix<double, -1, 1, 0, -1, 1>&, Eigen::Matrix<double, -1, 1, 0, -1, 1>&);
+template void igl::project_to_line<double>(double, double, double, double, double, double, double, double, double, double&, double&);
 #endif

+ 3 - 2
include/igl/project_to_line.h

@@ -1,5 +1,6 @@
 #ifndef IGL_PROJECT_TO_LINE
 #define IGL_PROJECT_TO_LINE
+#include "igl_inline.h"
 
 namespace igl
 {
@@ -30,7 +31,7 @@ namespace igl
     typename MatL, 
     typename Matt, 
     typename MatsqrD>
-  inline void project_to_line(
+  IGL_INLINE void project_to_line(
     const MatP & P,
     const MatL & S,
     const MatL & D,
@@ -39,7 +40,7 @@ namespace igl
   
   // Same as above but for a single query point
   template <typename Scalar>
-  inline void project_to_line(
+  IGL_INLINE void project_to_line(
     const Scalar px,
     const Scalar py,
     const Scalar pz,