mvc.h 988 B

1234567891011121314151617181920212223242526272829303132333435
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2013 Alec Jacobson <[email protected]>
  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_MVC_H
  9. #define IGL_MVC_H
  10. #include "igl_inline.h"
  11. #include <Eigen/Dense>
  12. namespace igl
  13. {
  14. /// Mean value coordinates for a polygon
  15. ///
  16. /// @param[in] V #V x dim list of vertex positions (dim = 2 or dim = 3)
  17. /// @param[in] C #C x dim list of polygon vertex positions in counter-clockwise order
  18. /// (dim = 2 or dim = 3)
  19. ///
  20. /// @param[out] W weights, #V by #C matrix of weights
  21. ///
  22. /// \bug implementation is listed as "Broken"
  23. IGL_INLINE void mvc(
  24. const Eigen::MatrixXd &V,
  25. const Eigen::MatrixXd &C,
  26. Eigen::MatrixXd &W);
  27. }
  28. #ifndef IGL_STATIC_LIBRARY
  29. # include "mvc.cpp"
  30. #endif
  31. #endif