Go to the documentation of this file.
69 int main( int argc, char **arg)
75 unsigned int nx,ny,nz;
76 unsigned int xID,yID,zID;
78 unsigned int i,s,nv,nvs;
92 fprintf(stderr, "Reading parameters from : %s\n", GetFileFullName(&fparam));
100 LoadAtlas(¶meters,&fatlas,&world,&atlas);
108 Error( "Can not open the cost file");
129 if (nx==nvs) {xID=i; s++;}
130 if (ny==nvs) {yID=i; s++;}
131 if (nz==nvs) {zID=i; s++;}
137 Error( "Projection dimensions are beyond the ambient space dimensionality");
140 fprintf(stderr, "Generating triangulation to : %s\n", GetFileFullName(&fplot));
161 fprintf(stderr, " Wrong number of parameters.\n");
162 fprintf(stderr, " Use:\n");
163 fprintf(stderr, " cuiktriangulateatlas <problem filename> <cost file> <xID> <yID> <zID>\n");
164 fprintf(stderr, " where <problem filename> is the atlas to plot.\n");
165 fprintf(stderr, " <cost file> [optional] file with associated costs for each chart.\n");
166 fprintf(stderr, " <xID> <yID> <zID> are the 3 projection dimensions.\n");
167 fprintf(stderr, " (indices of system variables numbered from 0)\n");
170 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.
#define CS_WD_INIT(pr, name, wcs) Initializes the equations from a file.
#define PLOT3D_EXT File extension for 3D plot files.
int main(int argc, char **arg) Main body of the cuiktriangulateatlas application.
void TriangulateAtlas(char *fname, int argc, char **arg, Tparameters *pr, FILE *fcost, unsigned int xID, unsigned int yID, unsigned int zID, Tatlas *a) Pots the triangular mesh defined by the an atlas.
Definition of the Tparameters type and the associated functions.
|
Follow us!