Chi-Tech
chi_surfacemesh_constrdestr.cc
Go to the documentation of this file.
1#include"chi_surfacemesh.h"
2
3//#########################################################
4/**Default constructor.*/
6{
7
8}
9
10//#########################################################
11/**Default destructor.*/
13{
14 for (auto poly_face : poly_faces_)
15 {
16 delete poly_face;
17 }
18
19 poly_faces_.clear();
20}
21
22//#########################################################
23std::ostream& operator<<(std::ostream& os,
25{
26 std::vector<chi_mesh::Face>::const_iterator curface;
27 for (curface = that.GetTriangles().begin();
28 curface != that.GetTriangles().end();
29 curface++)
30 {
31 long index = std::distance(that.GetTriangles().begin(),curface);
32 os << "Face " << index << " v:";
33 os << curface->v_index[0] << "->";
34 os << curface->v_index[1] << "->";
35 os << curface->v_index[2] << " ";
36
37 os << "e:";
38 for (int e=0;e<3;e++)
39 {
40 os << "[" << curface->e_index[e][0] << ",";
41 os << curface->e_index[e][1] << ",";
42 os << curface->e_index[e][2] << ",";
43 os << curface->e_index[e][3] << "]";
44 }
45 os << std::endl;
46
47 }
48
49 return os;
50}
std::ostream & operator<<(std::ostream &os, chi_mesh::SurfaceMesh &that)
const std::vector< chi_mesh::Face > & GetTriangles() const