Main Page | Namespace List | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

Vertex.hh

Go to the documentation of this file.
00001 /*
00002  * Vertex class
00003  * by hackervalley@free.fr
00004  * http://hackervalley.free.fr
00005  * May 2004
00006  * this program is licensed under the GPL.
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         /* class Vertex define a vertex in 3D space */
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

Generated on Sat Aug 7 18:49:02 2004 for FE by doxygen 1.3.6-20040222