is_stl.h 514 B

12345678910111213141516171819
  1. #ifndef IGL_IS_STL_H
  2. #define IGL_IS_STL_H
  3. #include "igl_inline.h"
  4. #include <cstdio>
  5. namespace igl
  6. {
  7. /// Given a file pointer, determine if it contains an .stl file and then
  8. /// rewind it.
  9. ///
  10. /// @param[in] stl_file pointer to file
  11. /// @param[in] is_ascii flag whether stl is ascii
  12. /// @return whether stl_file is an .stl file
  13. IGL_INLINE bool is_stl(FILE * stl_file, bool & is_ascii);
  14. IGL_INLINE bool is_stl(FILE * stl_file);
  15. };
  16. #ifndef IGL_STATIC_LIBRARY
  17. # include "is_stl.cpp"
  18. #endif
  19. #endif