00001
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include "Gral/Grids/Complex3D/boundary.h"
00020
00021 #include "Gral/Grids/Complex3D/all.h"
00022 #include "Gral/Grids/Cartesian3D/all.h"
00023
00024 #include <iostream>
00025
00026 int main() {
00027 using namespace GrAL;
00028 using namespace std;
00029
00030 using GrAL::cartesian3d::CartesianGrid3D;
00031 typedef grid_types<Complex3D> gt;
00032
00033 {
00034 CartesianGrid3D R(2,2,2);
00035 Complex3D G;
00036 ConstructGrid0(G,R);
00037 BoundaryRange<Complex3D> Bd(G);
00038 typedef grid_types<BoundaryRange<Complex3D> > bgt;
00039 cout << "Boundary 2x2x2: " << Bd.NumOfFacets() << " Facets " << endl;
00040 for(bgt::FacetIterator bf(Bd); ! bf.IsDone(); ++bf) {
00041 cout << "Facet " << bf.handle() << ": ";
00042 for(bgt::VertexOnFacetIterator vbf(*bf); ! vbf.IsDone(); ++vbf)
00043 cout << vbf.handle() << " ";
00044 cout << endl;
00045 }
00046 }
00047 {
00048 CartesianGrid3D R(3,3,3);
00049 Complex3D G;
00050 ConstructGrid0(G,R);
00051 BoundaryRange<Complex3D> Bd(G);
00052 cout << "Boundary 3x3x3: " << Bd.NumOfFacets() << " Facets " << endl;
00053 }
00054
00055 }
00056