is_stl.h 518 B

123456789101112131415161718192021
  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. // Inputs:
  11. // stl_file pointer to file
  12. // Outputs:
  13. // is_ascii flag whether stl is ascii
  14. // Returns whether stl_file is an .stl file
  15. IGL_INLINE bool is_stl(FILE * stl_file, bool & is_ascii);
  16. IGL_INLINE bool is_stl(FILE * stl_file);
  17. };
  18. #ifndef IGL_STATIC_LIBRARY
  19. # include "is_stl.cpp"
  20. #endif
  21. #endif