quadric_binary_plus_operator.h 699 B

12345678910111213141516171819202122232425262728
  1. #ifndef IGL_QUADRIC_BINARY_PLUS_OPERATOR_H
  2. #define IGL_QUADRIC_BINARY_PLUS_OPERATOR_H
  3. #include "igl_inline.h"
  4. #include <Eigen/Core>
  5. #include <tuple>
  6. namespace igl
  7. {
  8. // A binary addition operator for Quadric tuples compatible with qslim,
  9. // computing c = a+b
  10. //
  11. // Inputs:
  12. // a QSlim quadric
  13. // b QSlim quadric
  14. // Output
  15. // c QSlim quadric
  16. //
  17. IGL_INLINE std::tuple< Eigen::MatrixXd, Eigen::RowVectorXd, double>
  18. operator+(
  19. const std::tuple< Eigen::MatrixXd, Eigen::RowVectorXd, double> & a,
  20. const std::tuple< Eigen::MatrixXd, Eigen::RowVectorXd, double> & b);
  21. }
  22. #ifndef IGL_STATIC_LIBRARY
  23. # include "quadric_binary_plus_operator.cpp"
  24. #endif
  25. #endif