boundary_conditions.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef IGL_BOUNDARY_CONDITIONS_H
  2. #define IGL_BOUNDARY_CONDITIONS_H
  3. #include "igl_inline.h"
  4. #include <Eigen/Dense>
  5. namespace igl
  6. {
  7. // Compute boundary conditions for automatic weights computation
  8. // Inputs:
  9. // V #V by dim list of domain vertices
  10. // Ele #Ele by simplex-size list of simplex indices
  11. // C #C by dim list of handle positions
  12. // P #P by 1 list of point handle indices into C
  13. // BE #BE by 2 list of bone edge indices into C
  14. // CE #CE by 2 list of cage edge indices into *P*
  15. // Outputs:
  16. // b #b list of boundary indices (indices into V of vertices which have
  17. // known, fixed values)
  18. // bc #b by #weights list of known/fixed values for boundary vertices (notice
  19. // the #b != #weights in general because #b will include all the
  20. // intermediary samples along each bone, etc.. The ordering of the weights
  21. // corresponds to [P;BE]
  22. // Returns true if boundary conditions make sense
  23. IGL_INLINE bool boundary_conditions(
  24. const Eigen::MatrixXd & V,
  25. const Eigen::MatrixXi & Ele,
  26. const Eigen::MatrixXd & C,
  27. const Eigen::VectorXi & P,
  28. const Eigen::MatrixXi & BE,
  29. const Eigen::MatrixXi & CE,
  30. Eigen::VectorXi & b,
  31. Eigen::MatrixXd & bc);
  32. }
  33. #ifdef IGL_HEADER_ONLY
  34. # include "boundary_conditions.cpp"
  35. #endif
  36. #endif