MC_io_off.hpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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