MC_io_off.hpp

Go to the documentation of this file.
00001 
00002 /*
00003 **    Mesh Converter
00004 **    Copyright (C) 2009  Damien Rohmer
00005 **
00006 **    This program is free software: you can redistribute it and/or modify
00007 **    it under the terms of the GNU General Public License as published by
00008 **    the Free Software Foundation, either version 3 of the License, or
00009 **    (at your option) any later version.
00010 **
00011 **   This program is distributed in the hope that it will be useful,
00012 **    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 **    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 **    GNU General Public License for more details.
00015 **
00016 **    You should have received a copy of the GNU General Public License
00017 **    along with this program.  If not, see <http://www.gnu.org/licenses/>.
00018 */
00019 
00020 #ifndef _MC_IO_OFF_HPP_
00021 #define _MC_IO_OFF_HPP_
00022 
00023 #include <iostream>
00024 #include <fstream>
00025 
00026 namespace mesh_conv
00027 {
00028 
00029     class MC_v3d_vector;
00030 
00032     class MC_io_off
00033     {
00034 
00035     public:
00036 
00039         static std::pair <std::vector<double>,std::vector<int> > read_off(std::istream& stream);
00042         static std::pair <std::vector<double>,std::vector<int> > read_off_file(const std::string& string_file);
00043 
00045         static std::ostream& write_off(std::ostream& stream,const std::vector<double>& vertex,const std::vector<int>& connectivity);
00047         static void write_off_file(const std::string& string_file,const std::vector<double>& vertex,const std::vector<int>& connectivity);
00048 
00049 
00050     private:
00051 
00052     };
00053 }
00054 
00055 #endif

Generated on Fri Sep 25 13:31:35 2009 by  doxygen 1.5.8