OrcaSlicer/deps_src/libigl/igl/is_stl.h
SoftFever 883607e1d4
Refactor folder (#10475)
Move many third-party components' source codes from the src folder to a new folder called deps_src. The goal is to make the code structure clearer and easier to navigate.
2025-08-22 20:02:26 +08:00

21 lines
518 B
C++

#ifndef IGL_IS_STL_H
#define IGL_IS_STL_H
#include "igl_inline.h"
#include <cstdio>
namespace igl
{
// Given a file pointer, determine if it contains an .stl file and then
// rewind it.
//
// Inputs:
// stl_file pointer to file
// Outputs:
// is_ascii flag whether stl is ascii
// Returns whether stl_file is an .stl file
IGL_INLINE bool is_stl(FILE * stl_file, bool & is_ascii);
IGL_INLINE bool is_stl(FILE * stl_file);
};
#ifndef IGL_STATIC_LIBRARY
# include "is_stl.cpp"
#endif
#endif