Browse Source

fix for new unproject proto

Former-commit-id: 8cd86dd5b48b40e9b5a954fcd2fbe92e8588a18c
Alec Jacobson 10 years ago
parent
commit
a14e530ef3
2 changed files with 7 additions and 7 deletions
  1. 5 5
      include/igl/unproject_to_zero_plane.cpp
  2. 2 2
      include/igl/unproject_to_zero_plane.h

+ 5 - 5
include/igl/unproject_to_zero_plane.cpp

@@ -13,7 +13,7 @@
 #include "project.h"
 #include "unproject.h"
 
-IGL_INLINE int igl::unproject_to_zero_plane(
+IGL_INLINE void igl::unproject_to_zero_plane(
   const double winX,
   const double winY,
   double* objX,
@@ -26,7 +26,7 @@ IGL_INLINE int igl::unproject_to_zero_plane(
 }
 
 template <typename Derivedwin, typename Derivedobj>
-IGL_INLINE int igl::unproject_to_zero_plane(
+IGL_INLINE void igl::unproject_to_zero_plane(
   const Eigen::PlainObjectBase<Derivedwin> & win,
   Eigen::PlainObjectBase<Derivedobj> & obj)
 {
@@ -38,9 +38,9 @@ IGL_INLINE int igl::unproject_to_zero_plane(
 
 #ifdef IGL_STATIC_LIBRARY
 // Explicit template instanciation
-template int igl::unproject_to_zero_plane<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::Matrix<double, 3, 1, 0, 3, 1> >(Eigen::PlainObjectBase<Eigen::Matrix<double, 3, 1, 0, 3, 1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, 3, 1, 0, 3, 1> >&);
-template int igl::unproject_to_zero_plane<Eigen::Matrix<double, 2, 1, 0, 2, 1>, Eigen::Matrix<double, 1, 3, 1, 1, 3> >(Eigen::PlainObjectBase<Eigen::Matrix<double, 2, 1, 0, 2, 1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, 1, 3, 1, 1, 3> >&);
-template int igl::unproject_to_zero_plane<Eigen::Matrix<double, 2, 1, 0, 2, 1>, Eigen::Matrix<double, 3, 1, 0, 3, 1> >(Eigen::PlainObjectBase<Eigen::Matrix<double, 2, 1, 0, 2, 1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, 3, 1, 0, 3, 1> >&);
+template void igl::unproject_to_zero_plane<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::Matrix<double, 3, 1, 0, 3, 1> >(Eigen::PlainObjectBase<Eigen::Matrix<double, 3, 1, 0, 3, 1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, 3, 1, 0, 3, 1> >&);
+template void igl::unproject_to_zero_plane<Eigen::Matrix<double, 2, 1, 0, 2, 1>, Eigen::Matrix<double, 1, 3, 1, 1, 3> >(Eigen::PlainObjectBase<Eigen::Matrix<double, 2, 1, 0, 2, 1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, 1, 3, 1, 1, 3> >&);
+template void igl::unproject_to_zero_plane<Eigen::Matrix<double, 2, 1, 0, 2, 1>, Eigen::Matrix<double, 3, 1, 0, 3, 1> >(Eigen::PlainObjectBase<Eigen::Matrix<double, 2, 1, 0, 2, 1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, 3, 1, 0, 3, 1> >&);
 #endif
 
 #endif

+ 2 - 2
include/igl/unproject_to_zero_plane.h

@@ -19,14 +19,14 @@ namespace igl
   // Outputs:
   //   obj*  pointers to 3D objects' x, y, and z coordinates respectively
   // Returns return value of gluUnProject call
-  IGL_INLINE int unproject_to_zero_plane(
+  IGL_INLINE void unproject_to_zero_plane(
     const double winX,
     const double winY,
     double* objX,
     double* objY,
     double* objZ);
   template <typename Derivedwin, typename Derivedobj>
-  IGL_INLINE int unproject_to_zero_plane(
+  IGL_INLINE void unproject_to_zero_plane(
     const Eigen::PlainObjectBase<Derivedwin> & win,
     Eigen::PlainObjectBase<Derivedobj> & obj);
 }