1234567891011121314151617181920212223242526272829 |
- //
- // IGL Lib - Simple C++ mesh library
- //
- // Copyright 2011, Daniele Panozzo. All rights reserved.
- #ifndef IGL_WRITE_H
- #define IGL_WRITE_H
- #include "igl_inline.h"
- #include <Eigen/Core>
- #include <string>
- namespace igl
- {
- // write mesh to an ascii file with automatic detection of file format. supported: obj, off)
- // Known Bugs:
- // Does not correctly find file extensions: myfile.foo.off
- template <typename DerivedV, typename DerivedF>
- IGL_INLINE bool write(
- const std::string str,
- const Eigen::PlainObjectBase<DerivedV>& V,
- const Eigen::PlainObjectBase<DerivedF>& F);
- }
- #ifdef IGL_HEADER_ONLY
- # include "write.cpp"
- #endif
- #endif
|