intersect_other.h 618 B

123456789101112131415161718192021222324252627282930
  1. #ifndef IGL_INTERSECT_H
  2. #define IGL_INTERSECT_H
  3. #include <igl/igl_inline.h>
  4. #include <Eigen/Dense>
  5. #ifdef MEX
  6. # include <mex.h>
  7. # include <cassert>
  8. # undef assert
  9. # define assert( isOK ) ( (isOK) ? (void)0 : (void) mexErrMsgTxt(C_STR(__FILE__<<":"<<__LINE__<<": failed assertion `"<<#isOK<<"'"<<std::endl) ) )
  10. #endif
  11. namespace igl
  12. {
  13. IGL_INLINE void intersect(
  14. const Eigen::MatrixXd & V,
  15. const Eigen::MatrixXi & F,
  16. const Eigen::MatrixXd & U,
  17. const Eigen::MatrixXi & G,
  18. const bool first_only,
  19. Eigen::MatrixXi & IF);
  20. }
  21. #ifdef IGL_HEADER_ONLY
  22. # include "intersect.cpp"
  23. #endif
  24. #endif