spline_eytzinger_aabb.cpp 1.8 KB

123456789101112131415161718192021222324252627282930
  1. #include "spline_eytzinger_aabb.h"
  2. #include "box_cubic.h"
  3. #include "../eytzinger_aabb.h"
  4. template <
  5. typename DerivedP,
  6. typename DerivedC,
  7. typename DerivedB,
  8. typename Derivedleaf>
  9. void igl::cycodebase::spline_eytzinger_aabb(
  10. const Eigen::MatrixBase<DerivedP>& P,
  11. const Eigen::MatrixBase<DerivedC>& C,
  12. Eigen::PlainObjectBase<DerivedB>& B1,
  13. Eigen::PlainObjectBase<DerivedB>& B2,
  14. Eigen::PlainObjectBase<Derivedleaf>& leaf)
  15. {
  16. using Scalar = typename DerivedP::Scalar;
  17. Eigen::Matrix<Scalar,DerivedC::RowsAtCompileTime,DerivedP::ColsAtCompileTime,Eigen::RowMajor>
  18. PB1,PB2;
  19. box_cubic(P,C,PB1,PB2);
  20. eytzinger_aabb( PB1, PB2, B1, B2,leaf);
  21. }
  22. #ifdef IGL_STATIC_LIBRARY
  23. // Explicit template instantiation
  24. // generated by autoexplicit.sh
  25. template void igl::cycodebase::spline_eytzinger_aabb<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, 2, 1, -1, 2>, Eigen::Matrix<int, -1, 1, 0, -1, 1>>(Eigen::MatrixBase<Eigen::Matrix<double, -1, -1, 0, -1, -1>> const&, Eigen::MatrixBase<Eigen::Matrix<int, -1, -1, 0, -1, -1>> const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 2, 1, -1, 2>>&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 2, 1, -1, 2>>&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 1, 0, -1, 1>>&);
  26. // generated by autoexplicit.sh
  27. template void igl::cycodebase::spline_eytzinger_aabb<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 1, -1, -1>, Eigen::Matrix<int, -1, 1, 0, -1, 1>>(Eigen::MatrixBase<Eigen::Matrix<double, -1, -1, 0, -1, -1>> const&, Eigen::MatrixBase<Eigen::Matrix<int, -1, -1, 0, -1, -1>> const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 1, -1, -1>>&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 1, -1, -1>>&, Eigen::PlainObjectBase<Eigen::Matrix<int, -1, 1, 0, -1, 1>>&);
  28. #endif