Importer class for the sterolithography STL file format.
More...
Inherits Assimp::BaseImporter.
|
| enum | TextFileMode { ALLOW_EMPTY,
FORBID_EMPTY
} |
| | Enum to define, if empty files are ok or not. More...
|
| |
| static bool | CheckMagicToken (IOSystem *pIOHandler, const std::string &pFile, const void *magic, unsigned int num, unsigned int offset=0, unsigned int size=4) |
| | Check whether a file starts with one or more magic tokens. More...
|
| |
| static void | ConvertToUTF8 (std::vector< char > &data) |
| | An utility for all text file loaders. More...
|
| |
| static void | ConvertUTF8toISO8859_1 (std::string &data) |
| | An utility for all text file loaders. More...
|
| |
| template<typename T > |
| static AI_FORCE_INLINE void | CopyVector (std::vector< T > &vec, T *&out, unsigned int &outLength) |
| | Utility function to move a std::vector into a aiScene array. More...
|
| |
| static std::string | GetExtension (const std::string &pFile) |
| | Extract file extension from a string. More...
|
| |
| static bool | SearchFileHeaderForToken (IOSystem *pIOSystem, const std::string &file, const char **tokens, unsigned int numTokens, unsigned int searchBytes=200, bool tokensSol=false) |
| | A utility for CanRead(). More...
|
| |
| static bool | SimpleExtensionCheck (const std::string &pFile, const char *ext0, const char *ext1=NULL, const char *ext2=NULL) |
| | Check whether a file has a specific file extension. More...
|
| |
| static void | TextFileToBuffer (IOStream *stream, std::vector< char > &data, TextFileMode mode=FORBID_EMPTY) |
| | Utility for text file loaders which copies the contents of the file into a memory buffer and converts it to our UTF8 representation. More...
|
| |
Importer class for the sterolithography STL file format.
◆ STLImporter()
| STLImporter::STLImporter |
( |
| ) |
|
◆ ~STLImporter()
| STLImporter::~STLImporter |
( |
| ) |
|
◆ CanRead()
| bool STLImporter::CanRead |
( |
const std::string & |
pFile, |
|
|
IOSystem * |
pIOHandler, |
|
|
bool |
checkSig |
|
) |
| const |
|
virtual |
◆ GetInfo()
Return importer meta information.
See #BaseImporter::GetInfo for the details
Implements Assimp::BaseImporter.
◆ InternReadFile()
| void STLImporter::InternReadFile |
( |
const std::string & |
pFile, |
|
|
aiScene * |
pScene, |
|
|
IOSystem * |
pIOHandler |
|
) |
| |
|
protectedvirtual |
◆ LoadASCIIFile()
| void STLImporter::LoadASCIIFile |
( |
aiNode * |
root | ) |
|
|
protected |
Loads a ASCII text .stl file.
◆ LoadBinaryFile()
| bool STLImporter::LoadBinaryFile |
( |
| ) |
|
|
protected |
Loads a binary .stl file.
- Returns
- true if the default vertex color must be used as material color
◆ pushMeshesToNode()
| void STLImporter::pushMeshesToNode |
( |
std::vector< unsigned int > & |
meshIndices, |
|
|
aiNode * |
node |
|
) |
| |
|
protected |
◆ clrColorDefault
| aiColor4D Assimp::STLImporter::clrColorDefault |
|
protected |
◆ fileSize
| unsigned int Assimp::STLImporter::fileSize |
|
protected |
Size of the file, in bytes.
◆ mBuffer
| const char* Assimp::STLImporter::mBuffer |
|
protected |
Buffer to hold the loaded file.
◆ pScene
| aiScene* Assimp::STLImporter::pScene |
|
protected |
The documentation for this class was generated from the following files: