Changeset 5030
- Timestamp:
- 08/06/10 14:47:17 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/mex/ContourToNodes/ContourToNodes.cpp
r5019 r5030 50 50 CheckNumMatlabArguments(nlhs,NLHS,nrhs,NRHS,__FUNCT__,&ContourToNodesUsage); 51 51 52 /*First, call expread on filename to build a contour array in the matlab workspace: */ 53 mexCallMATLAB( 1, &matlabstructure, 1, (mxArray**)&FILENAME, "expread"); 54 52 55 53 /*Fetch inputs: */ 56 54 FetchData(&x,&nods,NULL,XHANDLE); … … 59 57 60 58 //Fetch contours 59 60 if(mxIsChar(FILENAME)){ 61 /*Call expread on filename to build a contour array in the matlab workspace: */ 62 mexCallMATLAB( 1, &matlabstructure, 1, (mxArray**)&FILENAME, "expread"); 63 } 64 else{ 65 /*FILENAME is actually a structure, coming directly from expread: */ 66 matlabstructure=(mxArray*)FILENAME; 67 } 68 61 69 numcontours=mxGetNumberOfElements(matlabstructure); 62 70 contours=(Contour**)xmalloc(numcontours*sizeof(Contour*)); … … 99 107 printf(" where:\n"); 100 108 printf(" x,y: list of nodes.\n"); 101 printf(" contourname: name of .exp file containing the contours .\n");109 printf(" contourname: name of .exp file containing the contours, or resulting structure from call to expread.\n"); 102 110 printf(" interptype: string definining type of interpolation ('element', or 'node').\n"); 103 111 printf(" edgevalue: integer (0, 1 or 2) defining the value associated to the nodes on the edges of the polygons.\n");
Note:
See TracChangeset
for help on using the changeset viewer.