flipped_triangles_ids.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2016 Michael Rabinovich <michaelrabinovich27@gmail.com@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_FLIPPED_TRIANGLES_IDS_H
  9. #define IGL_FLIPPED_TRIANGLES_IDS_H
  10. #include "igl_inline.h"
  11. #include <Eigen/Dense>
  12. #include <Eigen/Sparse>
  13. #include <vector>
  14. namespace igl
  15. {
  16. // Finds the ids of the flipped triangles of the mesh V,F in the UV mapping uv
  17. // Templates:
  18. // Scalar should be a floating point number type
  19. // Index should be an integer type
  20. // Inputs:
  21. // V #V by 2 list of mesh vertex positions
  22. // F #F by dim list of mesh faces (must be triangles)
  23. // Outputs:
  24. // A vector containing the ids of the flipped triangles
  25. template <typename Scalar, typename Index>
  26. IGL_INLINE Eigen::VectorXi flipped_triangles_ids(
  27. const Eigen::PlainObjectBase<Scalar> & V,
  28. const Eigen::PlainObjectBase<Index> & F
  29. );
  30. }
  31. #ifndef IGL_STATIC_LIBRARY
  32. # include "flipped_triangles_ids.cpp"
  33. #endif
  34. #endif