boundary_loop.h 954 B

123456789101112131415161718192021222324252627282930313233343536
  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_BOUNDARY_LOOP_H
  9. #define IGL_BOUNDARY_LOOP_H
  10. #include <igl/igl_inline.h>
  11. #include <Eigen/Dense>
  12. #include <vector>
  13. namespace igl
  14. {
  15. // Compute sorted list of boundary vertices for a manifold mesh with single
  16. // boundary.
  17. //
  18. // Inputs:
  19. // V #V by dim list of mesh vertex positions
  20. // F #V by dim list of mesh faces
  21. // Outputs:
  22. // bnd sorted list of boundary vertex indices
  23. IGL_INLINE void boundary_loop(
  24. const Eigen::MatrixXd& V,
  25. const Eigen::MatrixXi& F,
  26. Eigen::VectorXi& bnd);
  27. }
  28. #ifndef IGL_STATIC_LIBRARY
  29. # include "boundary_loop.cpp"
  30. #endif
  31. #endif