1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #ifndef IGL_READSTL_H
- #define IGL_READSTL_H
- #include "igl_inline.h"
- #ifndef IGL_NO_EIGEN
- # include <Eigen/Core>
- #endif
- #include <string>
- #include <cstdio>
- #include <vector>
- namespace igl
- {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- template <typename DerivedV, typename DerivedF, typename DerivedN>
- IGL_INLINE bool readSTL(
- const std::string & filename,
- Eigen::PlainObjectBase<DerivedV> & V,
- Eigen::PlainObjectBase<DerivedF> & F,
- Eigen::PlainObjectBase<DerivedN> & N);
-
-
-
-
- template <typename TypeV, typename TypeF, typename TypeN>
- IGL_INLINE bool readSTL(
- FILE * stl_file,
- std::vector<std::vector<TypeV> > & V,
- std::vector<std::vector<TypeF> > & F,
- std::vector<std::vector<TypeN> > & N);
- template <typename TypeV, typename TypeF, typename TypeN>
- IGL_INLINE bool readSTL(
- const std::string & filename,
- std::vector<std::vector<TypeV> > & V,
- std::vector<std::vector<TypeF> > & F,
- std::vector<std::vector<TypeN> > & N);
- }
- #ifndef IGL_STATIC_LIBRARY
- # include "readSTL.cpp"
- #endif
- #endif
|