Wavefront restoration by Z coeffs

This commit is contained in:
eddyem
2016-10-04 17:01:37 +03:00
parent dec8c284bc
commit d43501ed98
7 changed files with 939 additions and 14 deletions

View File

@@ -76,6 +76,21 @@ void proc_DAT(){
}
printf("Read coefficients:\n");
for(i = 0; i < Zn; ++i) printf("%4d\t%g\n", i, zerncoeffs[i]);
int L;
polar *crds = gen_coords(&L);
if(!crds){
WARNX("malloc()");
return;
}
printf("%d points\n", L);
double *surf = Zcompose(Zn, zerncoeffs, L, crds);
if(z_save_wavefront(L, crds, surf, GP->outname))
WARN(_("Can't open file %s"), GP->outname);
else
green(_("Saved to %s\n"), GP->outname);
FREE(crds);
FREE(surf);
}
/**