Преглед изворни кода

add cpature

Former-commit-id: 78ed65659d5e90e343ab8797f630f432e0db8cbf
Alec Jacobson пре 6 година
родитељ
комит
42883bb57a
1 измењених фајлова са 6 додато и 2 уклоњено
  1. 6 2
      include/igl/octree.cpp

+ 6 - 2
include/igl/octree.cpp

@@ -90,7 +90,7 @@ namespace igl {
     std::function< void(const ChildrenType, const int) > helper;
     helper = [&helper,&translate_center,&get_octant,&m,
               &zero_to_seven,&neg_ones,&P,
-              &point_indices,&children,&centers,&widths]
+              &point_indices,&children,&centers,&widths,&MAX_DEPTH]
     (const ChildrenType index, const int depth)-> void
     {
       if(point_indices.at(index).size() > 1 && depth < MAX_DEPTH){
@@ -173,4 +173,8 @@ namespace igl {
     }
   }
 }
-
+
+#ifdef IGL_STATIC_LIBRARY
+// Explicit template instantiation
+template void igl::octree<Eigen::Matrix<double, -1, -1, 0, -1, -1>, int, Eigen::Matrix<int, -1, 8, 0, -1, 8>, Eigen::Matrix<double, -1, 3, 0, -1, 3>, Eigen::Matrix<double, -1, 1, 0, -1, 1> >(Eigen::MatrixBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 8, 0, -1, 8> >&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 3, 0, -1, 3> >&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 1, 0, -1, 1> >&);
+#endif