00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef VERTEX_H
00010 #define VERTEX_H
00011
00012 #include <iostream>
00013 #include <iomanip>
00014
00015 using namespace std;
00016
00017 namespace FE
00018 {
00019
00020
00021
00022 template < typename T = double >class Vertex
00023 {
00024 public:
00025 int Identifier;
00026 T x, y, z, lc;
00027 bool IsSelect;
00028
00029 Vertex ():Identifier(0),x (T (0)), y (T (0)), z (T (0)), lc(T(0)), IsSelect(false)
00030 {
00031 };
00032
00033
00034 friend ostream & operator << (ostream & os,
00035 const Vertex < T > &Vertex)
00036 {
00037 os << "( " << std::
00038 setprecision (3) << setw (8) << Vertex.
00039 x << " , ";
00040 os << setw (12) << Vertex.
00041 y << " , " << setw (8) << Vertex.z << " )";
00042 return os;
00043 }
00044
00045 };
00046
00047 }
00048
00049 #endif