Go to the documentation of this file.
65 int main( int argc, char **arg)
87 Error( "Solution file can not be opened");
90 Error( "Empty list of solutions");
92 axesLength=atof(arg[3]);
94 frameDelay=atof(arg[4]);
99 frameDelay,&sol_box_list,&world);
114 fprintf(stdout, " Wrong number of parameters.\n");
115 fprintf(stdout, " Use:\n");
116 fprintf(stdout, " cuikanimate <world>.world <solutions>.sol <axes> <delay> <animation>.cgl\n");
117 fprintf(stdout, " Where:\n");
118 fprintf(stdout, " <world>: File describing the problem\n");
119 fprintf(stdout, " <solutions>: Is the path of solutions to be animated\n");
120 fprintf(stdout, " <axes>: Length for the axes for each link. 0 not to display them.\n");
121 fprintf(stdout, " <delay>: Delay (in seconds) between frames.\n");
122 fprintf(stdout, " To be added to the default delay (0.1 seconds).\n");
123 fprintf(stdout, " <animation>: Is the output file (can be seen with 'geomview')\n");
124 fprintf(stdout, " File extensions are not required\n");
127 return(EXIT_SUCCESS);
Data structure to hold the information about the name of a file.
void InitWorldFromFile(Tparameters *p, Tfilename *f, Tworld *w) Constructor.
void Error(const char *s) General error function.
#define PARAM_EXT File extension for parameter files.
All the necessary information to generate equations for mechanisms.
boolean ReadListOfBoxes(char *filename, Tlist *l) Reads a list of boxes from a file.
Collection of methods to work on Tlist of boxes.
Definition of the Tworld type and the associated functions.
void DeleteWorld(Tworld *w) Destructor.
Error and warning functions.
void DeleteFileName(Tfilename *fn) Destructor.
void DeleteListOfBoxes(Tlist *l) Destructor.
void AnimateWorld(Tparameters *pr, char *pname, double axesLength, double frameDelay, Tlist *p, Tworld *w) Produces an animation along a path.
void CreateFileName(char *path, char *name, char *suffix, char *ext, Tfilename *fn) Constructor.
void InitParametersFromFile(char *file, Tparameters *p) Constructor from a file.
char * GetFileFullName(Tfilename *fn) Gets the file full name (paht+name+extension).
#define SOL_EXT File extension for solution files.
#define WORLD_EXT File extension for problem files.
void DeleteParameters(Tparameters *p) Destructor.
int main(int argc, char **arg) Main body of the cuikanimate application.
#define PLOT3D_EXT File extension for 3D plot files.
unsigned int ListSize(Tlist *list) Gets the number of elements in the list.
|
Follow us!