mvc.h 669 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef IGL_MVC_H
  2. #define IGL_MVC_H
  3. #include "igl_inline.h"
  4. #include <Eigen/Dense>
  5. namespace igl
  6. {
  7. // MVC - MEAN VALUE COORDINATES
  8. //
  9. // mvc(V,C,W)
  10. //
  11. // Inputs:
  12. // V #V x dim list of vertex positions (dim = 2 or dim = 3)
  13. // C #C x dim list of polygon vertex positions in counter-clockwise order
  14. // (dim = 2 or dim = 3)
  15. //
  16. // Outputs:
  17. // W weights, #V by #C matrix of weights
  18. //
  19. // Known Bugs: implementation is listed as "Broken"
  20. IGL_INLINE void mvc(
  21. const Eigen::MatrixXd &V,
  22. const Eigen::MatrixXd &C,
  23. Eigen::MatrixXd &W);
  24. }
  25. #ifdef IGL_HEADER_ONLY
  26. # include "mvc.cpp"
  27. #endif
  28. #endif