angles.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 "deprecated.h"
  17. #include <Eigen/Core>
  18. namespace igl
  19. {
  20. // ANGLES Compute angles for each corner of each triangle
  21. //
  22. // Inputs:
  23. // V #V by dim list of vertex positions
  24. // F #V by 3[4] list of triangle[quads] indices
  25. // Outputs:
  26. // theta #F by 3[4] list of angles for each corner (in radians)
  27. //
  28. template <
  29. typename DerivedV,
  30. typename DerivedF,
  31. typename Derivedtheta>
  32. IGL_INLINE
  33. IGL_DEPRECATED(
  34. void angles(
  35. const Eigen::PlainObjectBase<DerivedV>& V,
  36. const Eigen::PlainObjectBase<DerivedF>& F,
  37. Eigen::PlainObjectBase<Derivedtheta>& theta));
  38. }
  39. #ifndef IGL_STATIC_LIBRARY
  40. # include "angles.cpp"
  41. #endif
  42. #endif