- Timestamp:
- 06/01/12 17:26:03 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk/src/c/modules/ContourToMeshx/ContourToMeshxt.cpp ¶
r11995 r12330 26 26 27 27 /*Contour:*/ 28 Contour* contouri=NULL; 29 int numnodes; 30 double* xc=NULL; 31 double* yc=NULL; 32 28 DataSet* contours=NULL; 33 29 34 30 /*parameters: */ 35 int numcontours;36 Contour** contours=NULL;37 31 int nods; 38 32 int edgevalue; … … 49 43 50 44 /*recover parameters :*/ 51 numcontours=gate->numcontours;52 45 contours=gate->contours; 53 46 nods=gate->nods; … … 61 54 62 55 /*Loop through all contours: */ 63 for (i=0;i<numcontours;i++){ 64 contouri=*(contours+i); 65 numnodes=contouri->nods; 66 xc=contouri->x; 67 yc=contouri->y; 68 IsInPoly(in_nod,xc,yc,numnodes,x,y,i0,i1,edgevalue); 56 for (i=0;i<contours->Size();i++){ 57 Contour* contour=(Contour*)contours->GetObjectByOffset(i); 58 IsInPoly(in_nod,contour->x,contour->y,contour->nods,x,y,i0,i1,edgevalue); 69 59 } 70 60
Note:
See TracChangeset
for help on using the changeset viewer.