瀏覽代碼

./unproject_in_mesh.cpp

Former-commit-id: f35746bde9c483a6e0a0a2272ff0de51e2a204c2
Alec Jacobson 9 年之前
父節點
當前提交
a215b41311
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      include/igl/unproject_ray.cpp

+ 4 - 0
include/igl/unproject_ray.cpp

@@ -36,3 +36,7 @@ IGL_INLINE void igl::unproject_ray(
   igl::unproject(win_d,model,proj,viewport,d);
   dir = d-s;
 }
+
+#ifdef IGL_STATIC_LIBRARY
+template void igl::unproject_ray<Eigen::Matrix<float, 2, 1, 0, 2, 1>, Eigen::Matrix<float, 4, 4, 0, 4, 4>, Eigen::Matrix<float, 4, 4, 0, 4, 4>, Eigen::Matrix<float, 4, 1, 0, 4, 1>, Eigen::Matrix<float, 3, 1, 0, 3, 1>, Eigen::Matrix<float, 3, 1, 0, 3, 1> >(Eigen::PlainObjectBase<Eigen::Matrix<float, 2, 1, 0, 2, 1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<float, 4, 4, 0, 4, 4> > const&, Eigen::PlainObjectBase<Eigen::Matrix<float, 4, 4, 0, 4, 4> > const&, Eigen::PlainObjectBase<Eigen::Matrix<float, 4, 1, 0, 4, 1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<float, 3, 1, 0, 3, 1> >&, Eigen::PlainObjectBase<Eigen::Matrix<float, 3, 1, 0, 3, 1> >&);
+#endif