Changeset 15095
- Timestamp:
- 05/24/13 08:22:29 (12 years ago)
- Location:
- issm/trunk-jpl/src/wrappers
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/wrappers/ExpSimplify/ExpSimplify.cpp
r15049 r15095 5 5 6 6 void ExpSimplifyUsage(void){/*{{{*/ 7 _p printLine_("ExpSimplify - Simplify Exp contour");8 _p printLine_("");9 _p printLine_(" Recursive Douglas-Peucker Polygon Simplification");10 _p printLine_("");11 _p printLine_(" Usage:");12 _p printLine_(" ExpSimplify(expfile,tol);");13 _p printLine_(" - expfile: name of the exp file");14 _p printLine_(" - tol: tolerance (maximal euclidean distance allowed between the new line and a vertex)");15 _p printLine_(" Additional options:");16 _p printLine_(" - 'min': minimum number of vertices to save contours in exp file (default is 3)");17 _p printLine_("");18 _p printLine_(" Example:");19 _p printLine_(" ExpSimplify('file.exp',100);");20 _p printLine_(" ExpSimplify('file.exp',100,'remove1',false);");7 _printLine_("ExpSimplify - Simplify Exp contour"); 8 _printLine_(""); 9 _printLine_(" Recursive Douglas-Peucker Polygon Simplification"); 10 _printLine_(""); 11 _printLine_(" Usage:"); 12 _printLine_(" ExpSimplify(expfile,tol);"); 13 _printLine_(" - expfile: name of the exp file"); 14 _printLine_(" - tol: tolerance (maximal euclidean distance allowed between the new line and a vertex)"); 15 _printLine_(" Additional options:"); 16 _printLine_(" - 'min': minimum number of vertices to save contours in exp file (default is 3)"); 17 _printLine_(""); 18 _printLine_(" Example:"); 19 _printLine_(" ExpSimplify('file.exp',100);"); 20 _printLine_(" ExpSimplify('file.exp',100,'remove1',false);"); 21 21 }/*}}}*/ 22 22 void simplify(Contour<double>* contour,bool* flags,int ind0,int ind1,double tolerance){/*{{{*/ … … 145 145 x = contour->x; 146 146 y = contour->y; 147 printf(" Initial number of vertices in contour #%i: %i\n",counter+1,nods);147 _printLine_(" Initial number of vertices in contour #"<<counter+1<<": "<<nods); 148 148 149 149 /*Allocate flags (1=keep, 0=remove)*/ … … 183 183 /*Do we save new profile?*/ 184 184 if(newnods>=minimumvertices){ 185 printf(" Final number of vertices in contour #%i: %i\n",counter+1,newnods);185 _printLine_(" Final number of vertices in contour #"<<counter+1<<": "<<newnods); 186 186 newcontour = xNew<Contour<double> >(1); 187 187 newcontour->nods = newnods; … … 202 202 } 203 203 else{ 204 printf(" Final number of vertices in contour #%i: %i (not saved)\n",counter+1,newnods);204 _printLine_(" Final number of vertices in contour #"<<counter+1<<": "<<newnods<<" (not saved)"); 205 205 } 206 206 … … 208 208 xDelete<bool>(flags); 209 209 } 210 printf(" Initial number of contours: %i\n",oldcontours->Size());211 printf(" Final number of contours: %i\n",newcontours->Size());210 _printLine_(" Initial number of contours: "<<oldcontours->Size()); 211 _printLine_(" Final number of contours: "<<newcontours->Size()); 212 212 213 213 /*Write data: */ -
issm/trunk-jpl/src/wrappers/matlab/io/matlabio.h
r15091 r15095 96 96 #endif 97 97 98 98 /*Print*/ 99 void ApiPrintf(char* format,const char* string); 99 100 #endif /* _IO_H_ */ -
issm/trunk-jpl/src/wrappers/python/io/pythonio.h
r15091 r15095 55 55 PyObject* PyArrayFromCopiedData(int dimi,int dimj,bool* data); 56 56 57 /*Print*/ 58 void ApiPrintf(char* format,const char* string); 59 57 60 #endif /* _IO_H_ */
Note:
See TracChangeset
for help on using the changeset viewer.