point.h

Go to the documentation of this file.
00001 /*
00002     mesh3d
00003     Copyright (C) 2010  Timo Suoranta
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Lesser General Public
00007     License as published by the Free Software Foundation; either
00008     version 2.1 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Lesser General Public License for more details.
00014 
00015     You should have received a copy of the GNU Lesser General Public
00016     License along with this library; if not, write to the Free Software
00017     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00018 */
00019 
00027 #ifndef MESH3D__POINT__H
00028 #define MESH3D__POINT__H
00029 
00030 #include <vector>
00031 
00032 namespace mesh3d {
00033 
00034 class corner;
00035 class geometry;
00036 
00038 class point 
00039 {
00040 public:
00041     typedef std::vector<corner*> corner_collection;
00042 
00043     corner_collection       &corners()       { return m_corners; }
00044     corner_collection const &corners() const { return m_corners; }
00045 
00046 private:
00047     friend class geometry;
00048 
00049 private:
00050     friend class polygon;
00051 
00052     void add_corner(corner *corner)
00053     {
00054         m_corners.push_back(corner);
00055     };
00056 
00057 private:
00058     corner_collection  m_corners;
00059 };
00060 
00061 }
00062 
00063 #endif 
00064 
Generated on Sun Apr 11 12:23:08 2010 for RenderStack by  doxygen 1.6.3