Go to the documentation of this file.
71 int main( int argc, char **arg)
77 unsigned int nx,ny,nz;
78 unsigned int xID,yID,zID;
80 unsigned int i,s,nv,nvs;
89 if ((argc==5)||(argc==6))
94 fprintf(stderr, "Reading parameters from : %s\n", GetFileFullName(&fparam));
102 LoadAtlas(¶meters,&fatlas,&world,&atlas);
110 Error( "Can not open the cost file");
131 if (nx==nvs) {xID=i; s++;}
132 if (ny==nvs) {yID=i; s++;}
133 if (nz==nvs) {zID=i; s++;}
139 Error( "Projection dimensions are beyond the ambient space dimensionality");
142 fprintf(stderr, "Generating atlas plot to : %s\n", GetFileFullName(&fplot));
163 fprintf(stderr, " Wrong number of parameters.\n");
164 fprintf(stderr, " Use:\n");
165 fprintf(stderr, " cuikplotatlas <problem filename> <cost file> <xID> <yID> <zID>\n");
166 fprintf(stderr, " where <problem filename> is the atlas to plot.\n");
167 fprintf(stderr, " <cost file> [optional] file with associated costs for each chart.\n");
168 fprintf(stderr, " <xID> <yID> <zID> are the 3 projection dimensions.\n");
169 fprintf(stderr, " (indices of system variables as those in the _path.sol file from 0)\n");
172 return(EXIT_SUCCESS);
void LoadAtlas(Tparameters *pr, Tfilename *fname, TAtlasBase *w, Tatlas *a) Defines an atlas from the information on a file.
Data structure to hold the information about the name of a file.
Definition of the Tfilename type and the associated functions.
#define COST_EXT File extension for arrays of costs.
void DeleteAtlas(Tatlas *a) Destructor.
void Error(const char *s) General error function.
#define PARAM_EXT File extension for parameter files.
#define CS_WD_DELETE(wcs) Destructor of the equation structure.
Definition of the Tworld type and the associated functions.
Error and warning functions.
void DeleteFileName(Tfilename *fn) Destructor.
#define ATLAS_EXT File extension for files storing atlas.
Definitions of constants and macros used in several parts of the cuik library.
void CreateFileName(char *path, char *name, char *suffix, char *ext, Tfilename *fn) Constructor.
void InitParametersFromFile(char *file, Tparameters *p) Constructor from a file.
Type defining the equations on which the atlas is defined.
Definition of an atlas on a manifold.
#define CS_WD_GET_SYSTEM_VARS(sv, wcs) Gets the system variables.
char * GetFileFullName(Tfilename *fn) Gets the file full name (paht+name+extension).
void DeleteParameters(Tparameters *p) Destructor.
int main(int argc, char **arg) Main body of the cuikplotatlas application.
#define CS_WD_INIT(pr, name, wcs) Initializes the equations from a file.
#define PLOT3D_EXT File extension for 3D plot files.
Auxiliary functions to deal with sets of samples.
Definition of the Tparameters type and the associated functions.
void PlotAtlas(char *fname, int argc, char **arg, Tparameters *pr, FILE *fcost, unsigned int xID, unsigned int yID, unsigned int zID, Tatlas *a) Pots a projection of an atlas.
|
Follow us!