//=========================================================================== // GoTools Core - SINTEF Geometry Tools Core library, version 2.0.1 // // Copyright (C) 2000-2007, 2010 SINTEF ICT, Applied Mathematics, Norway. // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation version 2 of the License. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., // 59 Temple Place - Suite 330, // Boston, MA 02111-1307, USA. // // Contact information: E-mail: tor.dokken@sintef.no // SINTEF ICT, Department of Applied Mathematics, // P.O. Box 124 Blindern, // 0314 Oslo, Norway. // // Other licenses are also available for this software, notably licenses // for: // - Building commercial software. // - Building software whose source code you wish to keep private. //=========================================================================== 00013 #ifndef _RECTGRIDTESSELATOR_H 00014 #define _RECTGRIDTESSELATOR_H 00015 00020 #include "GoTools/tesselator/Tesselator.h" 00021 #include "GoTools/geometry/RectGrid.h" 00022 #include "GoTools/tesselator/QuadMesh.h" 00023 #include <boost/shared_ptr.hpp> 00024 00025 namespace Go 00026 { 00027 00028 class RectGridTesselator : public Tesselator 00029 { 00030 public: 00031 RectGridTesselator(const RectGrid& rg); 00032 00033 virtual ~RectGridTesselator(); 00034 00035 void tesselate(); 00036 00037 boost::shared_ptr<QuadMesh> getMesh() 00038 { 00039 return quadmesh_; 00040 } 00041 00042 private: 00043 const RectGrid& rectgrid_; 00044 boost::shared_ptr<QuadMesh> quadmesh_; 00045 }; 00046 00047 } // namespace Go 00048 00049 00050 #endif // _RECTGRIDTESSELATOR_H 00051