write.h 619 B

123456789101112131415161718192021222324
  1. #ifndef IGL_WRITE_H
  2. #define IGL_WRITE_H
  3. #include "igl_inline.h"
  4. #include <Eigen/Core>
  5. #include <string>
  6. namespace igl
  7. {
  8. // write mesh to an ascii file with automatic detection of file format. supported: obj, off)
  9. // Known Bugs:
  10. // Does not correctly find file extensions: myfile.foo.off
  11. template <typename DerivedV, typename DerivedF>
  12. IGL_INLINE bool write(
  13. const std::string str,
  14. const Eigen::PlainObjectBase<DerivedV>& V,
  15. const Eigen::PlainObjectBase<DerivedF>& F);
  16. }
  17. #ifdef IGL_HEADER_ONLY
  18. # include "write.cpp"
  19. #endif
  20. #endif