genBundleSpline (pedge edge, agxbuf* xb)
{
int k, j, mm, kk;
- char buf[BUFSIZ];
int dim = edge->dim;
real* x = edge->x;
real tt1[3]={0.15,0.5,0.85};
t = tt[kk-1];
for (k = 0; k < dim; k++) {
if (k != 0) agxbputc(xb,',');
- sprintf(buf, "%.03f", (x[(j-1)*dim+k]*(1-t)+x[j*dim+k]*(t)));
- agxbput(xb, buf);
+ agxbprint(xb, "%.03f", (x[(j-1)*dim+k]*(1-t)+x[j*dim+k]*(t)));
}
agxbputc(xb,' ');
}
if ((j == 0) || (j == edge->npoints - 1)) {
for (k = 0; k < dim; k++) {
if (k != 0) agxbputc(xb,',');
- sprintf(buf, "%.03f", x[j*dim+k]);
- agxbput(xb, buf);
+ agxbprint(xb, "%.03f", x[j*dim+k]);
}
}
}