16 double x0, y0, z0, Lx, Ly, Lz ;
24 vector<vector<double> > vertices2;
25 vector<vector<vector<double> > > vertices3;
26 vector< vector<int> > segments;
27 vector< vector<double> > holes;
28 vector<double> regions;
29 vector<int> vertexFlags;
30 vector<int> segmentFlags;
31 vector< vector < vector < vector<int> > > >facets;
38 cout <<
"Enter the domain, 1 for Rectangular Domain, 2 for Planar Straight Line Graph, 3 for Triangulated Surface Domain, and 4 for Piecewise Linear Complex Domain: " << endl;
45 cout <<
"Enter 1 for 1D, 2 for 2D, and 3 for 3D asymptote rectangle:"<<endl;
61 cout <<
"Enter the x0 coordinate:" << endl;
63 cout <<
"Enter the Lx coordinate:" << endl;
70 cout<<
"Enter filename"<<endl;
72 filename = filenameIn +
".asy";
74 cout <<
"Writing to "<<filename<<
"..." << endl;
82 cout <<
"Enter the x0:" << endl;
84 cout <<
"Enter the Lx:" << endl;
86 cout <<
"Enter the y0:" << endl;
88 cout <<
"Enter the Ly:" << endl;
95 cout<<
"Enter filename"<<endl;
97 filename = filenameIn +
".asy";
98 cout <<
"Writing to "<< filename <<
"..." << endl;
100 polyfile = filenameIn +
".poly";
102 cout <<
"Writing to "<< polyfile <<
"..." << endl;
110 cout <<
"Enter the x0:" << endl;
112 cout <<
"Enter the Lx:" << endl;
114 cout <<
"Enter the y0:" << endl;
116 cout <<
"Enter the Ly:" << endl;
118 cout <<
"Enter the z0:" << endl;
120 cout <<
"Enter the Lz:" << endl;
126 cout<<
"Enter filename"<<endl;
128 filename = filenameIn +
".asy";
129 cout <<
"Writing to "<<filename<<
"..." <<endl;
130 polyfile = filenameIn +
".poly";
131 cout <<
"Writing to" << polyfile <<
"..."<< endl;
139 else if (answer == 2)
148 vertices2.push_back(x);
149 vertices2.push_back(y);
158 segments.push_back(a);
159 segments.push_back(b);
163 cout <<
"Enter filename: ";
165 filename = filenameIn +
".asy";
166 polyfile = filenameIn +
".poly";
175 else if (answer == 4)
202 vertices3.push_back(x);
203 vertices3.push_back(y);
204 vertices3.push_back(
z);
239 cout <<
"Enter filename:" << endl;
241 filename = filenameIn +
".asy";
242 polyfile = filenameIn +
".poly";
249 cout <<
"The domain entered is not supported" << endl;