19 void voro_print_vector(std::vector<int> &v,FILE *fp) {
22 fprintf(fp,
"%d %d %d %d ",v[k],v[k+1],v[k+2],v[k+3]);
26 if(k+4==s) fprintf(fp,
"%d %d %d %d",v[k],v[k+1],v[k+2],v[k+3]);
27 else fprintf(fp,
"%d %d %d",v[k],v[k+1],v[k+2]);
29 if(k+2==s) fprintf(fp,
"%d %d",v[k],v[k+1]);
30 else fprintf(fp,
"%d",v[k]);
39 void voro_print_vector(std::vector<double> &v,FILE *fp) {
42 fprintf(fp,
"%g %g %g %g ",v[k],v[k+1],v[k+2],v[k+3]);
46 if(k+4==s) fprintf(fp,
"%g %g %g %g",v[k],v[k+1],v[k+2],v[k+3]);
47 else fprintf(fp,
"%g %g %g",v[k],v[k+1],v[k+2]);
49 if(k+2==s) fprintf(fp,
"%g %g",v[k],v[k+1]);
50 else fprintf(fp,
"%g",v[k]);
62 void voro_print_face_vertices(std::vector<int> &v,FILE *fp) {
67 if(l==1) fprintf(fp,
"(%d)",v[k++]);
71 fprintf(fp,
"(%d",v[k++]);
72 while(k<j) fprintf(fp,
",%d",v[k++]);
75 while((
unsigned int) k<v.size()) {
78 if(l==1) fprintf(fp,
" (%d)",v[k++]);
82 fprintf(fp,
" (%d",v[k++]);
83 while(k<j) fprintf(fp,
",%d",v[k++]);
Header file for the small helper functions.