- Timestamp:
- 06/01/12 17:26:03 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/modules/ContourToNodesx/ContourToNodesx.cpp
r11995 r12330 38 38 return 1; 39 39 } 40 41 int ContourToNodesx( Vector** pflags,double* x, double* y, int nods, DataSet* contours, int edgevalue){ 42 43 int i; 44 int m,n; 45 46 /*Contour:*/ 47 Contour* contouri=NULL; 48 int numnodes; 49 double* xc=NULL; 50 double* yc=NULL; 51 double value; 52 53 /*output: */ 54 Vector* flags=NULL; 55 56 flags=new Vector(nods); 57 58 /*Loop through all contours: */ 59 if(contours){ 60 for (i=0;i<contours->Size();i++){ 61 Contour* contour=(Contour*)contours->GetObjectByOffset(i); 62 IsInPoly(flags,contour->x,contour->y,contour->nods,x,y,0,nods,edgevalue); 63 } 64 } 65 66 /*Assemble vector: */ 67 flags->Assemble(); 68 69 /*Assign output pointers: */ 70 *pflags=flags; 71 72 return 1; 73 }
Note:
See TracChangeset
for help on using the changeset viewer.