Assimp  v4.1. (December 2018)
tools/assimp_cmd/main.cpp File Reference

Functions

int Assimp_TestBatchLoad (const char *const *params, unsigned int num)
 assimp testbatchload utility More...
 
bool ExportModel (const aiScene *pOut, const ImportData &imp, const std::string &path, const char *pID)
 Export a specific model file. More...
 
void FreeLogStreams ()
 
const aiSceneImportModel (const ImportData &imp, const std::string &path)
 Import a specific model file. More...
 
int main (int argc, char *argv[])
 
void PrintHorBar ()
 
int ProcessStandardArguments (ImportData &fill, const char *const *params, unsigned int num)
 Process standard arguments. More...
 
void SetLogStreams (const ImportData &imp)
 

Variables

const char * AICMD_MSG_ABOUT
 
const char * AICMD_MSG_HELP
 
Assimp::ExporterglobalExporter = NULL
 
Assimp::ImporterglobalImporter = NULL
 

Function Documentation

◆ Assimp_TestBatchLoad()

int Assimp_TestBatchLoad ( const char *const *  params,
unsigned int  num 
)

assimp testbatchload utility

Parameters
paramsCommand line parameters to 'assimp testbatchload'
Numberof params
Returns
0 for success

◆ ExportModel()

bool ExportModel ( const aiScene pOut,
const ImportData imp,
const std::string &  path,
const char *  pID 
)

Export a specific model file.

Parameters
impImport configuration to be used
pathPath to the file to be written
formatFormat id

◆ FreeLogStreams()

void FreeLogStreams ( )

◆ ImportModel()

const aiScene* ImportModel ( const ImportData imp,
const std::string &  path 
)

Import a specific model file.

Parameters
impImport configuration to be used
pathPath to the file to be read

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ PrintHorBar()

void PrintHorBar ( )

◆ ProcessStandardArguments()

int ProcessStandardArguments ( ImportData fill,
const char *const *  params,
unsigned int  num 
)

Process standard arguments.

Parameters
fillFilled by function
paramsCommand line parameters to be processed
numNUmber of params
Returns
0 for success

◆ SetLogStreams()

void SetLogStreams ( const ImportData imp)

Variable Documentation

◆ AICMD_MSG_ABOUT

const char* AICMD_MSG_ABOUT
Initial value:
=
"------------------------------------------------------ \n"
"Open Asset Import Library (\"Assimp\", https://github.com/assimp/assimp) \n"
" -- Commandline toolchain --\n"
"------------------------------------------------------ \n\n"
"Version %i.%i %s%s%s%s%s(GIT commit %x)\n\n"

◆ AICMD_MSG_HELP

const char* AICMD_MSG_HELP
Initial value:
=
"assimp <verb> <parameters>\n\n"
" verbs:\n"
" \tinfo - Quick file stats\n"
" \tlistext - List all known file extensions available for import\n"
" \tknowext - Check whether a file extension is recognized by Assimp\n"
" \texport - Export a file to one of the supported output formats\n"
" \tlistexport - List all supported export formats\n"
" \texportinfo - Show basic information on a specific export format\n"
" \textract - Extract embedded texture images\n"
" \tdump - Convert models to a binary or textual dump (ASSBIN/ASSXML)\n"
" \tcmpdump - Compare dumps created using \'assimp dump <file> -s ...\'\n"
" \tversion - Display Assimp version\n"
"\n Use \'assimp <verb> --help\' for detailed help on a command.\n"

◆ globalExporter

Assimp::Exporter* globalExporter = NULL

◆ globalImporter

Assimp::Importer* globalImporter = NULL