37 double xmin, xmax, ymin, ymax, zmin, zmax;
39 string eastbc, westbc, northbc, southbc, topbc, bottombc;
44 ofstream file (
"output.pfs");
46 cerr <<
"Error opening input file\n";
50 file <<
"blocks" <<endl;
52 for (std::list<Octree*>::iterator it =
nodes.begin(), end =
nodes.end(); it != end; ++it) {
61 level = (*it)->get_level();
69 blocknumber = (*it)->number;
78 file << blocknumber <<
" " << xmin <<
" " << xmax <<
" " << ymin <<
" " << ymax <<
" " << zmin <<
" " << zmax <<
" " << level<<
" " ;
79 file << eastbc <<
" " << westbc <<
" " << northbc <<
" " << southbc <<
" " << topbc <<
" " << bottombc << endl;
Standard input output stuff.
Class to store octree datastructure as nodes of the tree.
std::list< Octree * > nodes
string NodeBc_to_string(myOctree::NodeBc bcc)