angles.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2015 Daniele Panozzo <daniele.panozzo@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_ANGLES_H
  9. #define IGL_ANGLES_H
  10. #ifdef _WIN32
  11. #pragma message ( "Deprecated. Use igl/internal_angles.h instead" )
  12. #else
  13. #warning "Deprecated. Use igl/internal_angles.h instead"
  14. #endif
  15. #include "igl_inline.h"
  16. #include <Eigen/Core>
  17. namespace igl
  18. {
  19. // ANGLES Compute angles for each corner of each triangle
  20. //
  21. // Inputs:
  22. // V #V by dim list of vertex positions
  23. // F #V by 3[4] list of triangle[quads] indices
  24. // Outputs:
  25. // theta #F by 3[4] list of angles for each corner (in radians)
  26. //
  27. template <
  28. typename DerivedV,
  29. typename DerivedF,
  30. typename Derivedtheta>
  31. IGL_INLINE void angles(
  32. const Eigen::PlainObjectBase<DerivedV>& V,
  33. const Eigen::PlainObjectBase<DerivedF>& F,
  34. Eigen::PlainObjectBase<Derivedtheta>& theta);
  35. }
  36. #ifndef IGL_STATIC_LIBRARY
  37. # include "angles.cpp"
  38. #endif
  39. #endif