Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Output Routines

Functions

void dump_strong_edges (const std::vector< std::pair< float, Halfedge * > > &, const std::vector< std::pair< float, Halfedge * > > &)
 Dump out the strong edges in Tecplot format into file <name>s1.plt. More...
 

Detailed Description

Function Documentation

void dump_strong_edges ( const std::vector< std::pair< float, Halfedge * > > &  tstrong_edges,
const std::vector< std::pair< float, Halfedge * > > &  rstrong_edges 
)
private

Dump out the strong edges in Tecplot format into file <name>s1.plt.

Definition at line 175 of file RFC_Window_overlay_IO.C.

References cimg_library::acos(), and n.

176  {
177  int n=0;
178  string buf = out_pre + name() + "s1.plt";
179 
180  ofstream os( buf.c_str());
181  for (vector<pair<float,Halfedge*> >::const_iterator it=tstrong_edges.begin();
182  it!=tstrong_edges.end(); ++it, ++n) {
183  os << "GEOMETRY T=LINE3D C=GREEN"
184  << " LT=0.4" << endl << 1 << endl
185  << 2 << ' ' << it->second->origin()->point()
186  << ' ' << it->second->destination()->point()
187  << endl;
188  }
189 
190  if ( !tstrong_edges.empty())
191  std::cout << "\tStatistics: Theta-strong-edge angle: MAX ="
192  << acos(tstrong_edges.front().first)*r2d
193  << " and MIN=" << acos(tstrong_edges.back().first)*r2d
194  << std::endl;
195 
196  for (vector<pair<float,Halfedge*> >::const_iterator it=rstrong_edges.begin();
197  it!=rstrong_edges.end(); ++it, ++n) {
198  os << "GEOMETRY T=LINE3D C=GREEN"
199  << " LT=0.1" << endl << 1 << endl
200  << 2 << ' ' << it->second->origin()->point()
201  << ' ' << it->second->destination()->point()
202  << endl;
203  }
204  if ( !rstrong_edges.empty())
205  std::cout << " \tStatistics: r-strong-edge angle: MAX ="
206  << acos(rstrong_edges.front().first)*r2d
207  << " and MIN=" << acos(rstrong_edges.back().first)*r2d
208  << std::endl;
209 }
std::string name() const
The name of the window.
static const float r2d
const NT & n
CImg< _cimg_Tfloat > acos(const CImg< T > &instance)
Definition: CImg.h:6051

Here is the call graph for this function: