|
From: <WH...@bf...> - 2004-08-05 12:22:25
|
hi,
i have still problems with these grid data stuff. perhaps i am on
the wrong way ?
here is a shortcut of my problem:
/* count 2D-points with value Z */
count=20;
for(i=0;i<count;i++) {
pnt[i].x= (PLFLT) (rand()%100); /* 0...99 */
pnt[i].y= (PLFLT) (rand()%100); /* 0...99 */
pnt[i].z= (PLFLT) (rand()& 1); /* 0,1 */
}
my impression was that plgriddata() das the magic to move [x,y,z] -> z[a][b]
/*
org line from my trial X,Y,Z is the array with the original data
dY,dX,dZ is the (display)data
*/
plgriddata(X,Y,Z,count,dX,count,dY,count,dZ,alg,GRID_CSA);
I exspected now a mesh (or something like that) with:
plot3d(dX,dY,dZ,count,count,DRAW_LINEXY,0);
I did saome other experiments but obviously i got something seriously wrong :(
regards,
walter
|