box_simplices.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2025 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. #ifndef IGL_BOX_SIMPLICES_H
  9. #define IGL_BOX_SIMPLICES_H
  10. #include "igl_inline.h"
  11. #include <Eigen/Core>
  12. namespace igl
  13. {
  14. ///
  15. ///
  16. /// @param[in] V #V by dim list of vertex positions
  17. /// @param[in] F #F by ss list of simplex indices into V
  18. /// @param[out] B1 #B by dim list of minimum corners of the Eytzinger AABBs
  19. /// @param[out] B2 #B by dim list of maximum corners of the Eytzinger AABBs
  20. ///
  21. template <
  22. typename DerivedV,
  23. typename DerivedF,
  24. typename DerivedB
  25. >
  26. IGL_INLINE void box_simplices(
  27. const Eigen::MatrixBase<DerivedV> & V,
  28. const Eigen::MatrixBase<DerivedF> & F,
  29. Eigen::PlainObjectBase<DerivedB> & B1,
  30. Eigen::PlainObjectBase<DerivedB> & B2);
  31. }
  32. #ifndef IGL_STATIC_LIBRARY
  33. # include "box_simplices.cpp"
  34. #endif
  35. #endif