row_to_point.cpp 1.1 KB

12345678910111213141516171819202122232425
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2016 Alec Jacobson <[email protected]>
  4. //
  5. // This Source Code Form is subject to the terms of the Mozilla Public License
  6. // v. 2.0. If a copy of the MPL was not distributed with this file, You can
  7. // obtain one at http://mozilla.org/MPL/2.0/.
  8. #include "row_to_point.h"
  9. template <
  10. typename Kernel,
  11. typename DerivedV>
  12. IGL_INLINE CGAL::Point_2<Kernel> igl::copyleft::cgal::row_to_point(
  13. const Eigen::MatrixBase<DerivedV> & V,
  14. const typename DerivedV::Index & i)
  15. {
  16. return CGAL::Point_2<Kernel>(V(i,0),V(i,1));
  17. }
  18. #ifdef IGL_STATIC_LIBRARY
  19. // Explicit template instantiation
  20. #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
  21. #include <CGAL/Exact_predicates_exact_constructions_kernel.h>
  22. template CGAL::Point_2<CGAL::Epeck> igl::copyleft::cgal::row_to_point<CGAL::Epeck, Eigen::Matrix<CGAL::Epeck::FT, -1, -1, 0, -1, -1> >(Eigen::MatrixBase<Eigen::Matrix<CGAL::Epeck::FT, -1, -1, 0, -1, -1> > const&, Eigen::Matrix<CGAL::Epeck::FT, -1, -1, 0, -1, -1>::Index const&);
  23. #endif