outline_ordered.h 1003 B

1234567891011121314151617181920212223242526272829303132333435
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2014 Stefan Brugger <stefanbrugger@gmail.com>
  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_OUTLINE_ORDERED_H
  9. #define IGL_OUTLINE_ORDERED_H
  10. #include "igl_inline.h"
  11. #include <Eigen/Dense>
  12. #include <vector>
  13. namespace igl
  14. {
  15. // Compute list of ordered boundary loops for a manifold mesh.
  16. //
  17. // Templates:
  18. // Index index type
  19. // Inputs:
  20. // F #V by dim list of mesh faces
  21. // Outputs:
  22. // L list of loops where L[i] = ordered list of boundary vertices in loop i
  23. //
  24. template <typename DerivedF, typename Index>
  25. IGL_INLINE void outline_ordered(
  26. const Eigen::PlainObjectBase<DerivedF> & F,
  27. std::vector<std::vector<Index> >& L);
  28. }
  29. #ifndef IGL_STATIC_LIBRARY
  30. # include "outline_ordered.cpp"
  31. #endif
  32. #endif