write.h 581 B

12345678910111213141516171819202122232425262728
  1. //
  2. // IGL Lib - Simple C++ mesh library
  3. //
  4. // Copyright 2011, Daniele Panozzo. All rights reserved.
  5. #ifndef IGL_WRITE_H
  6. #define IGL_WRITE_H
  7. #include "igl_inline.h"
  8. #include <Eigen/Core>
  9. #include <string>
  10. namespace igl
  11. {
  12. // write mesh to an ascii file with automatic detection of file format. supported: obj, off)
  13. // Known Bugs:
  14. // Does not correctly find file extensions: myfile.foo.off
  15. IGL_INLINE bool write(
  16. const std::string str,
  17. const Eigen::MatrixXd& V,
  18. const Eigen::MatrixXi& F);
  19. }
  20. #ifdef IGL_HEADER_ONLY
  21. # include "write.cpp"
  22. #endif
  23. #endif