launch_medit.h 990 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef IGL_LAUNCH_MEDIT_H
  2. #define IGL_LAUNCH_MEDIT_H
  3. #include "igl_inline.h"
  4. #include <Eigen/Dense>
  5. namespace igl
  6. {
  7. // Writes the tetmesh in (V,T,F) to a temporary file, opens it with medit
  8. // (forking with a system call) and returns
  9. //
  10. //
  11. // Templates:
  12. // DerivedV real-value: i.e. from MatrixXd
  13. // DerivedT integer-value: i.e. from MatrixXi
  14. // DerivedF integer-value: i.e. from MatrixXi
  15. // Inputs:
  16. // V double matrix of vertex positions #V by 3
  17. // T #T list of tet indices into vertex positions
  18. // F #F list of face indices into vertex positions
  19. // Returns returned value of system call (probably not useful because of the
  20. // fork)
  21. template <typename DerivedV, typename DerivedT, typename DerivedF>
  22. IGL_INLINE int launch_medit(
  23. const Eigen::MatrixBase<DerivedV> & V,
  24. const Eigen::MatrixBase<DerivedT> & T,
  25. const Eigen::MatrixBase<DerivedF> & F);
  26. }
  27. #ifdef IGL_HEADER_ONLY
  28. # include "launch_medit.cpp"
  29. #endif
  30. #endif