boundary_vertices_sorted.h 973 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_BOUNDARYVERTICESSORTED_H
  9. #define IGL_BOUNDARYVERTICESSORTED_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 mesh with single boundary.
  16. //
  17. // Inputs:
  18. // V #V by dim list of mesh vertex positions
  19. // F #V by dim list of mesh faces
  20. // Outputs:
  21. // bnd sorted list of boundary vertex indices
  22. IGL_INLINE void boundary_vertices_sorted(
  23. const Eigen::MatrixXd& V,
  24. const Eigen::MatrixXi& F,
  25. Eigen::VectorXi& bnd);
  26. }
  27. #ifdef IGL_HEADER_ONLY
  28. # include "boundary_vertices_sorted.cpp"
  29. #endif
  30. #endif