Go to the documentation of this file.
64 int main( int argc, char **arg)
71 unsigned int dim_x,dim_y,dim_z;
72 double min_x,max_x,min_y,max_y, min_z,max_z;
79 fprintf(stderr, "Use:\n");
80 fprintf(stderr, " cuikplot3d <filename> dimx dimy dimz min_size <plotname> \n");
81 fprintf(stderr, " <filename> the input .sol file\n");
82 fprintf(stderr, " dimx dimy dimz -> the three dimensions to be plotted (numbered from 1)\n");
83 fprintf(stderr, " min_size -> minimum size for the boxes\n");
84 fprintf(stderr, " <plotname> the output .gcl file\n");
95 Error( "Input file can not be opened");
101 dim_x=( unsigned int)atoi(arg[2]);
102 dim_y=( unsigned int)atoi(arg[3]);
103 dim_z=( unsigned int)atoi(arg[4]);
106 if ((dim_x==0)||(dim_y==0)||(dim_z==0))
107 Error( "Dimensions are numbered from 1\n");
122 minSize=(double)atof(arg[5]);
165 if (((max_x-min_x)<minSize)&&
166 ((max_y-min_y)<minSize)&&
167 ((max_z-min_z)<minSize))
180 PlotBox3d(min_x,max_x,min_y,max_y,min_z,max_z,&plot);
187 } while (token!=EOF);
195 return(EXIT_SUCCESS);
|
Follow us!